summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Coucheron <arco68@gmail.com>2017-08-09 01:44:47 +0200
committerArne Coucheron <arco68@gmail.com>2018-01-27 00:41:44 +0100
commitbf3d81e8f465bdfad101f8c21505518b50f72410 (patch)
tree9be5b6d464cc340bda28ec0b4b3c8c3f1b8aded1
parent6c89e7d0c8491c8927e64c24dc272e8ec130f44c (diff)
downloadandroid_packages_apps_Snap-bf3d81e8f465bdfad101f8c21505518b50f72410.zip
android_packages_apps_Snap-bf3d81e8f465bdfad101f8c21505518b50f72410.tar.gz
android_packages_apps_Snap-bf3d81e8f465bdfad101f8c21505518b50f72410.tar.bz2
Snap: Fix filter mode button after disabling HDR mode
Change-Id: I24953691c020727900a8cd944e60c27a24ff62c9
-rw-r--r--src/com/android/camera/PhotoMenu.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/camera/PhotoMenu.java b/src/com/android/camera/PhotoMenu.java
index 10811ad..1634dc8 100644
--- a/src/com/android/camera/PhotoMenu.java
+++ b/src/com/android/camera/PhotoMenu.java
@@ -1591,7 +1591,10 @@ public class PhotoMenu extends MenuController
} else {
mHdrSwitcher.setVisibility(View.VISIBLE);
}
- updateFilterModeIcon(pref, pref);
+
+ ListPreference hdrPref = mPreferenceGroup.findPreference(CameraSettings.KEY_CAMERA_HDR);
+ ListPreference scenePref = mPreferenceGroup.findPreference(CameraSettings.KEY_SCENE_MODE);
+ updateFilterModeIcon(scenePref, hdrPref);
if (same(pref, CameraSettings.KEY_RECORD_LOCATION, "on")) {
mActivity.requestLocationPermission();