diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-02-25 14:30:34 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-02-28 17:10:23 +0800 |
commit | 842b44f24ab621122183a149e20a852e5d8e0200 (patch) | |
tree | 672fe00af1dd3c10980b99d13da9131b588092db /src/com/android/camera/ui/OtherSettingsPopup.java | |
parent | 44377058a0255e2944280fde5cc802e709af0d9b (diff) | |
download | LegacyCamera-842b44f24ab621122183a149e20a852e5d8e0200.zip LegacyCamera-842b44f24ab621122183a149e20a852e5d8e0200.tar.gz LegacyCamera-842b44f24ab621122183a149e20a852e5d8e0200.tar.bz2 |
Fix the bug that exposure is not matching with settings.
UI should be updated when exposure is reset in onResume.
bug:3398281
Change-Id: I535bac04643a684262ff756d079efc220e4bfa3d
Diffstat (limited to 'src/com/android/camera/ui/OtherSettingsPopup.java')
-rw-r--r-- | src/com/android/camera/ui/OtherSettingsPopup.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/OtherSettingsPopup.java b/src/com/android/camera/ui/OtherSettingsPopup.java index 0014099..018eb1c 100644 --- a/src/com/android/camera/ui/OtherSettingsPopup.java +++ b/src/com/android/camera/ui/OtherSettingsPopup.java @@ -164,4 +164,16 @@ public class OtherSettingsPopup extends AbstractSettingPopup mListener.onRestorePreferencesClicked(); } } + + public void reloadPreference() { + int count = mSettingList.getChildCount(); + for (int i = 0; i < count; i++) { + ListPreference pref = (ListPreference) mListItem.get(i).get(ITEM_KEY); + if (pref != null) { + InLineSettingPicker picker = + (InLineSettingPicker) mSettingList.getChildAt(i); + picker.reloadPreference(); + } + } + } } |