diff options
author | Alan Viverette <alanv@google.com> | 2014-04-01 14:57:39 -0700 |
---|---|---|
committer | Alan Viverette <alanv@google.com> | 2014-04-01 14:57:39 -0700 |
commit | 6259933ec99dee566f200c5fdfe1756ee72b1513 (patch) | |
tree | 78196ea29921d4331a576922a564568f6894a207 /packages/SystemUI/src/com/android/systemui/settings | |
parent | 6f127c9b6c249ca1cd17c07a8476edd0fcc1f04d (diff) | |
download | frameworks_base-6259933ec99dee566f200c5fdfe1756ee72b1513.zip frameworks_base-6259933ec99dee566f200c5fdfe1756ee72b1513.tar.gz frameworks_base-6259933ec99dee566f200c5fdfe1756ee72b1513.tar.bz2 |
Switch framework Holo references to Quantum.Light
Change-Id: Ib545a143f1959b6104adbc9d594dd626851d90b3
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/settings')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/settings/ToggleSlider.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/settings/ToggleSlider.java b/packages/SystemUI/src/com/android/systemui/settings/ToggleSlider.java index d584043..c99f691 100644 --- a/packages/SystemUI/src/com/android/systemui/settings/ToggleSlider.java +++ b/packages/SystemUI/src/com/android/systemui/settings/ToggleSlider.java @@ -83,22 +83,7 @@ public class ToggleSlider extends RelativeLayout } public void onCheckedChanged(CompoundButton toggle, boolean checked) { - Drawable thumb; - Drawable slider; - final Resources res = getContext().getResources(); - if (checked) { - thumb = res.getDrawable( - com.android.internal.R.drawable.scrubber_control_disabled_holo); - slider = res.getDrawable( - R.drawable.status_bar_settings_slider_disabled); - } else { - thumb = res.getDrawable( - com.android.internal.R.drawable.scrubber_control_selector_holo); - slider = res.getDrawable( - com.android.internal.R.drawable.scrubber_progress_horizontal_holo_dark); - } - mSlider.setThumb(thumb); - mSlider.setProgressDrawable(slider); + mSlider.setEnabled(checked); if (mListener != null) { mListener.onChanged(this, mTracking, checked, mSlider.getProgress()); |