summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2016-12-23 20:44:05 +0100
committerEthan Chen <intervigil@gmail.com>2017-01-29 05:51:00 +0000
commita425da8101c4c3567b407016551b791d279fbdfe (patch)
tree63efae20c213ac8044738acbc431c9823e653ddf
parent2bc50511221788bf6a5815f92a07d95380e3d8ad (diff)
downloadandroid_packages_apps_Snap-a425da8101c4c3567b407016551b791d279fbdfe.zip
android_packages_apps_Snap-a425da8101c4c3567b407016551b791d279fbdfe.tar.gz
android_packages_apps_Snap-a425da8101c4c3567b407016551b791d279fbdfe.tar.bz2
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
-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 d18a4a4..d285b47 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) {