diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2015-05-29 10:17:29 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 16:12:35 -0700 |
commit | 54b5611638000cd7247e32df5513fe73b86af234 (patch) | |
tree | 2fe340b5d72bd17899c9fb919a04fd9e28b9f653 /src/com/android/settings/profiles | |
parent | 8faf268f3404cb7f2a99fb952fcdc49dfbdd352a (diff) | |
download | packages_apps_Settings-54b5611638000cd7247e32df5513fe73b86af234.zip packages_apps_Settings-54b5611638000cd7247e32df5513fe73b86af234.tar.gz packages_apps_Settings-54b5611638000cd7247e32df5513fe73b86af234.tar.bz2 |
Profiles: fix SeekBarVolumizer behavior
- Seekbar needs to be setEnabled() *after* setting the seekbar to
the volumizer becase volumizer.setSeekBar() will set the seekbar's
enabled state.
Change-Id: Ia5b3b8cfaebb54997a60a7f09915e1f22016c060
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r-- | src/com/android/settings/profiles/SetupActionsFragment.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java index c7c9680..d303d45 100644 --- a/src/com/android/settings/profiles/SetupActionsFragment.java +++ b/src/com/android/settings/profiles/SetupActionsFragment.java @@ -774,10 +774,12 @@ public class SetupActionsFragment extends SettingsPreferenceFragment seekBar.setEnabled(isChecked); } }); - seekBar.setEnabled(streamSettings.isOverride()); final SeekBarVolumizer volumizer = new SeekBarVolumizer(getActivity(), streamId, null, null); + volumizer.start(); volumizer.setSeekBar(seekBar); + seekBar.setEnabled(streamSettings.isOverride()); + builder.setView(view); builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { @Override |