summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormingwax <mingwax@codeaurora.org>2016-12-07 16:02:18 +0800
committerqimengp <qimengp@codeaurora.org>2016-12-13 19:31:36 +0800
commitd939396a8cfc2fc1ad22062ecc499a97d4537e00 (patch)
treed78fde2640482eb822666b1d03c881a677e49728
parent797e9efbb608b95ed8ef297d2552e99a59a92c60 (diff)
downloadandroid_packages_apps_Snap-d939396a8cfc2fc1ad22062ecc499a97d4537e00.zip
android_packages_apps_Snap-d939396a8cfc2fc1ad22062ecc499a97d4537e00.tar.gz
android_packages_apps_Snap-d939396a8cfc2fc1ad22062ecc499a97d4537e00.tar.bz2
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
-rwxr-xr-xsrc/com/android/camera/ui/OneUICameraControls.java1
-rw-r--r--src/com/android/camera/ui/ProMode.java4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/OneUICameraControls.java b/src/com/android/camera/ui/OneUICameraControls.java
index 0388b57..3dce60d 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 dbd89ec..876dff3 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) {