summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/SetupActionsFragment.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java
index af90304..a2f41fe 100644
--- a/src/com/android/settings/profiles/SetupActionsFragment.java
+++ b/src/com/android/settings/profiles/SetupActionsFragment.java
@@ -687,12 +687,7 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
override.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
- streamSettings.setOverride(isChecked);
seekBar.setEnabled(isChecked);
-
- mProfile.setStreamSettings(streamSettings);
- mAdapter.notifyDataSetChanged();
- updateProfile();
}
});
seekBar.setEnabled(streamSettings.isOverride());
@@ -703,19 +698,14 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
@Override
public void onClick(DialogInterface dialog, int which) {
int value = seekBar.getProgress();
+ streamSettings.setOverride(override.isChecked());
streamSettings.setValue(value);
mProfile.setStreamSettings(streamSettings);
mAdapter.notifyDataSetChanged();
updateProfile();
- dialog.dismiss();
- }
- });
- builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
- @Override
- public void onClick(DialogInterface dialog, int which) {
- dialog.dismiss();
}
});
+ builder.setNegativeButton(android.R.string.cancel, null);
builder.show();
}