summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2017-04-09 20:58:31 +0200
committercodeworkx <daniel.hillenbrand@codeworkx.de>2017-04-09 20:59:40 +0200
commitf262e1a30d5f95d74f1a0a44ea25d3c7a40245f5 (patch)
treeb3b508f6b3d866ee15470c4454bab7e060ab73a2
parent054040364b8a4cb79b600c3c169f358333507ea9 (diff)
downloadandroid_packages_apps_Snap-f262e1a30d5f95d74f1a0a44ea25d3c7a40245f5.tar.gz
android_packages_apps_Snap-f262e1a30d5f95d74f1a0a44ea25d3c7a40245f5.tar.bz2
android_packages_apps_Snap-f262e1a30d5f95d74f1a0a44ea25d3c7a40245f5.zip
Snap: CaptureModule: set switcher index on resume
Fixes showing wrong drawable on module switcher when switching from other modules. Change-Id: Ia2a4971c79d13c12434a4abfbcf926ebd078172f
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 22b8e19ac..51913f99d 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1857,6 +1857,7 @@ public class CaptureModule extends BaseModule<CaptureUI> implements PhotoControl
initializeValues();
updatePreviewSize();
mUI.showSurfaceView();
+ mUI.setSwitcherIndex();
mCameraIdList = new ArrayList<>();
int cameraId = getMainCameraId();