diff options
-rw-r--r-- | src/com/android/camera/ui/InLineSettingSwitch.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/InLineSettingSwitch.java b/src/com/android/camera/ui/InLineSettingSwitch.java index 8fc37da..20efc0c 100644 --- a/src/com/android/camera/ui/InLineSettingSwitch.java +++ b/src/com/android/camera/ui/InLineSettingSwitch.java @@ -57,13 +57,16 @@ public class InLineSettingSwitch extends InLineSettingItem { R.string.accessibility_switch, mPreference.getTitle())); } + @Override protected void updateView() { + mSwitch.setOnCheckedChangeListener(null); if (mOverrideValue == null) { mSwitch.setChecked(mIndex == 1); } else { int index = mPreference.findIndexOfValue(mOverrideValue); mSwitch.setChecked(index == 1); } + mSwitch.setOnCheckedChangeListener(mCheckedChangeListener); } @Override |