From d939396a8cfc2fc1ad22062ecc499a97d4537e00 Mon Sep 17 00:00:00 2001 From: mingwax Date: Wed, 7 Dec 2016 16:02:18 +0800 Subject: SnapdragonCamera: Fix ProMode refresh UI issue The WB and Exposure value don`t update when changed in the setting View. Update the value of WB and Exposure when resume the PreMode. CRs-Fixed: 1098270 Change-Id: I4f42555dd59e17de86e55dfaaa0f7a027e19c28c --- src/com/android/camera/ui/OneUICameraControls.java | 1 + src/com/android/camera/ui/ProMode.java | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/com/android/camera/ui/OneUICameraControls.java b/src/com/android/camera/ui/OneUICameraControls.java index 0388b5761..3dce60d22 100755 --- a/src/com/android/camera/ui/OneUICameraControls.java +++ b/src/com/android/camera/ui/OneUICameraControls.java @@ -532,6 +532,7 @@ public class OneUICameraControls extends RotatableLayout { mProModeOn = promode; initializeProMode(mProModeOn); resetProModeIcons(); + mProMode.reinit(); } private void resetProModeIcons() { diff --git a/src/com/android/camera/ui/ProMode.java b/src/com/android/camera/ui/ProMode.java index dbd89ec58..876dff323 100644 --- a/src/com/android/camera/ui/ProMode.java +++ b/src/com/android/camera/ui/ProMode.java @@ -169,6 +169,10 @@ public class ProMode extends View { mCurveMeasure = new PathMeasure(mCurvePath, false); } + public void reinit() { + init(); + } + public void setOrientation(int orientation) { mOrientation = orientation; if (mAddedViews != null) { -- cgit v1.2.3