diff options
author | codeworkx <codeworkx@cyanogenmod.org> | 2016-12-23 20:44:05 +0100 |
---|---|---|
committer | Ethan Chen <intervigil@gmail.com> | 2017-01-29 05:51:00 +0000 |
commit | a425da8101c4c3567b407016551b791d279fbdfe (patch) | |
tree | 63efae20c213ac8044738acbc431c9823e653ddf /src | |
parent | 2bc50511221788bf6a5815f92a07d95380e3d8ad (diff) | |
download | android_packages_apps_Snap-a425da8101c4c3567b407016551b791d279fbdfe.tar.gz android_packages_apps_Snap-a425da8101c4c3567b407016551b791d279fbdfe.tar.bz2 android_packages_apps_Snap-a425da8101c4c3567b407016551b791d279fbdfe.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
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/CameraActivity.java | 5 |
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) { |