summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/module
diff options
context:
space:
mode:
authorErin Dahlgren <edahlgren@google.com>2014-03-28 12:44:04 -0700
committerErin Dahlgren <edahlgren@google.com>2014-03-28 13:34:06 -0700
commit1ca516f2b612f91e0857ca87d978d39c2aba7c8c (patch)
tree40cdf810c3ffa516912075d5a3600507dd4728f3 /src/com/android/camera/module
parentc51b5d242f95442f75cd46e84bf91087c18f65be (diff)
downloadandroid_packages_apps_Camera2-1ca516f2b612f91e0857ca87d978d39c2aba7c8c.tar.gz
android_packages_apps_Camera2-1ca516f2b612f91e0857ca87d978d39c2aba7c8c.tar.bz2
android_packages_apps_Camera2-1ca516f2b612f91e0857ca87d978d39c2aba7c8c.zip
Allow modules to hard reset settings to prevent out-of-sync errors.
Bug: 13663716 Bug: 13507557 Change-Id: Ie4e66c356c69c3a75a568dae13ddd2d42f60179e
Diffstat (limited to 'src/com/android/camera/module')
-rw-r--r--src/com/android/camera/module/ModuleController.java7
1 files changed, 7 insertions, 0 deletions
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.
@@ -111,6 +112,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.
*/