summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles/SetupActionsFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles/SetupActionsFragment.java')
-rw-r--r--src/com/android/settings/profiles/SetupActionsFragment.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java
index e9f0076..7a433b4 100644
--- a/src/com/android/settings/profiles/SetupActionsFragment.java
+++ b/src/com/android/settings/profiles/SetupActionsFragment.java
@@ -895,12 +895,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
override.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
- brightnessSettings.setOverride(isChecked);
seekBar.setEnabled(isChecked);
-
- mProfile.setBrightness(brightnessSettings);
- mAdapter.notifyDataSetChanged();
- updateProfile();
}
});
seekBar.setEnabled(brightnessSettings.isOverride());
@@ -912,6 +907,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
public void onClick(DialogInterface dialog, int which) {
int value = seekBar.getProgress();
brightnessSettings.setValue(value);
+ brightnessSettings.setOverride(override.isChecked());
mProfile.setBrightness(brightnessSettings);
mAdapter.notifyDataSetChanged();
updateProfile();