summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2016-12-23 20:44:05 +0100
committerZhao Wei Liew <zhaoweiliew@gmail.com>2017-02-11 01:37:39 +0000
commit7bfb43e641be631a6b5da8544d3e286d105e5def (patch)
treefd6128009af5dec7ce045212337533f7984c19a6
parent413e9bd770cbd868929d6c09318b54620c059169 (diff)
downloadandroid_packages_apps_Snap-7bfb43e641be631a6b5da8544d3e286d105e5def.tar.gz
android_packages_apps_Snap-7bfb43e641be631a6b5da8544d3e286d105e5def.tar.bz2
android_packages_apps_Snap-7bfb43e641be631a6b5da8544d3e286d105e5def.zip
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 (cherry picked from commit a425da8101c4c3567b407016551b791d279fbdfe)
-rw-r--r--src/com/android/camera/CameraActivity.java5
1 files changed, 5 insertions, 0 deletions
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) {