Re-initialize emulated camera settings on cleanup
CTS tests may be expecting certain configuration when starting up
camera. Bring camera back to default on cleanup.
Test: Run CtsCamera module twice
Bug: 31377597
Change-Id: I37436699caf8c56e5a546efb7a947ffd88b01d99
(cherry picked from commit 8b694ac0ef218391dc65ec056c16065ca4ffecbc)
diff --git a/camera/EmulatedCamera.cpp b/camera/EmulatedCamera.cpp
index 096c5b2..64abbc2 100755
--- a/camera/EmulatedCamera.cpp
+++ b/camera/EmulatedCamera.cpp
@@ -675,6 +675,9 @@
mCallbackNotifier.cleanupCBNotifier();
+ /* Re-init the camera settings in case settings were changed */
+ Initialize();
+
return NO_ERROR;
}