From 1ca516f2b612f91e0857ca87d978d39c2aba7c8c Mon Sep 17 00:00:00 2001 From: Erin Dahlgren Date: Fri, 28 Mar 2014 12:44:04 -0700 Subject: Allow modules to hard reset settings to prevent out-of-sync errors. Bug: 13663716 Bug: 13507557 Change-Id: Ie4e66c356c69c3a75a568dae13ddd2d42f60179e --- src/com/android/camera/module/ModuleController.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/com/android/camera/module') diff --git a/src/com/android/camera/module/ModuleController.java b/src/com/android/camera/module/ModuleController.java index a61c590e3..ea6b7e4a3 100644 --- a/src/com/android/camera/module/ModuleController.java +++ b/src/com/android/camera/module/ModuleController.java @@ -21,6 +21,7 @@ import com.android.camera.ShutterButton; import com.android.camera.app.CameraAppUI.BottomBarUISpec; import com.android.camera.app.CameraManager; import com.android.camera.hardware.HardwareSpec; +import com.android.camera.settings.SettingsManager; /** * The controller at app level. @@ -110,6 +111,12 @@ public interface ModuleController extends ShutterButton.OnShutterButtonListener */ public void onCameraAvailable(CameraManager.CameraProxy cameraProxy); + /** + * Called by the app on startup or module switches, this allows the module + * to perform a hard reset on specific settings. + */ + public void hardResetSettings(SettingsManager settingsManager); + /** * Returns a {@link com.android.camera.hardware.HardwareSpec} * based on the module's open camera device. -- cgit v1.2.3