summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjiaoyuan <jiaoyuan@codeaurora.org>2019-09-03 13:03:36 +0800
committerjiaoyuan <jiaoyuan@codeaurora.org>2019-11-22 17:07:27 +0800
commit55bd73452687a0153240af4e7e02cf4fec6fd86e (patch)
tree93909c27705745b32ab973a82ec8a44bd696a976
parentf3b7cacf2b53b3239fc29ffddc2028be6dba89a2 (diff)
downloadandroid_packages_apps_Snap-55bd73452687a0153240af4e7e02cf4fec6fd86e.zip
android_packages_apps_Snap-55bd73452687a0153240af4e7e02cf4fec6fd86e.tar.gz
android_packages_apps_Snap-55bd73452687a0153240af4e7e02cf4fec6fd86e.tar.bz2
SnapdraongCamera: hide AEB after restore
hide AEB after restore Change-Id: I5f9b6222e2f14eab7a41da04f90bb1f5b87faabe
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java2
-rwxr-xr-xsrc/com/android/camera/SettingsActivity.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index d4db0b7..1edbb70 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -833,6 +833,8 @@ public class CaptureModule implements CameraModule, PhotoController,
SettingsManager.KEY_STATS_VISUALIZER_VALUE);
if (stats_visualizer != null) {
updateStatsView(stats_visualizer,result);
+ } else {
+ mUI.updateAWBInfoVisibility(View.GONE);
}
}
};
diff --git a/src/com/android/camera/SettingsActivity.java b/src/com/android/camera/SettingsActivity.java
index 3fef924..0658248 100755
--- a/src/com/android/camera/SettingsActivity.java
+++ b/src/com/android/camera/SettingsActivity.java
@@ -804,14 +804,14 @@ public class SettingsActivity extends PreferenceActivity {
pref.setEntries(mSettingsManager.getEntries(key));
pref.setEntryValues(mSettingsManager.getEntryValues(key));
String values = mSettingsManager.getValue(key);
+ Set<String> valueSet = new HashSet<String>();
if (values != null) {
- Set<String> valueSet = new HashSet<String>();
String[] splitValues = values.split(";");
for (String str : splitValues) {
valueSet.add(str);
}
- pref.setValues(valueSet);
}
+ pref.setValues(valueSet);
}
}
}