From 54b5611638000cd7247e32df5513fe73b86af234 Mon Sep 17 00:00:00 2001 From: Raj Yengisetty Date: Fri, 29 May 2015 10:17:29 -0700 Subject: 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 --- src/com/android/settings/profiles/SetupActionsFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/android/settings/profiles') 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 -- cgit v1.1