From a425da8101c4c3567b407016551b791d279fbdfe Mon Sep 17 00:00:00 2001 From: codeworkx Date: Fri, 23 Dec 2016 20:44:05 +0100 Subject: Snap: store module index Store the module index so we can use it the next time the Camera starts up. Looks like this code got lost in space during one of the recent merges. Probably somewhere around the black hole in andromeda galaxy. Credits to codeaurora Change-Id: I1be5f643fbeb985fbc4734d03498deeac3ed841b --- src/com/android/camera/CameraActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java index d18a4a442..d285b4741 100644 --- a/src/com/android/camera/CameraActivity.java +++ b/src/com/android/camera/CameraActivity.java @@ -2089,6 +2089,11 @@ public class CameraActivity extends Activity getWindow().getDecorView().setBackgroundColor(getResources().getColor(R.color.camera_controls_bg_opaque)); anim.start(); + + // Store the module index so we can use it the next time the Camera + // starts up. + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); + prefs.edit().putInt(CameraSettings.KEY_STARTUP_MODULE_INDEX, moduleIndex).apply(); } private void selectModuleWithReveal(final int moduleIndex, Point hotspot) { -- cgit v1.2.3