diff options
author | Keith Mok <kmok@cyngn.com> | 2016-07-12 09:45:45 -0700 |
---|---|---|
committer | Keith Mok <kmok@cyngn.com> | 2016-07-12 09:49:36 -0700 |
commit | 5eb6beb98c2487dcbb9de59f6a1c0e8fb3dae8df (patch) | |
tree | a258ad03dd847180a60781df3d81a52d14b0aa23 | |
parent | de44f4355cac698c2ffab867cc62a3b26a117008 (diff) | |
download | packages_apps_Settings-5eb6beb98c2487dcbb9de59f6a1c0e8fb3dae8df.zip packages_apps_Settings-5eb6beb98c2487dcbb9de59f6a1c0e8fb3dae8df.tar.gz packages_apps_Settings-5eb6beb98c2487dcbb9de59f6a1c0e8fb3dae8df.tar.bz2 |
Settings: Always set ramp-up time value during bindView
onProgressChange is not always called if we set the
ramp up time to 5 sec (0 in seekbar value, since it is
the default value, no change).
Causing the text showing the ramp up time text value not
updated and display as empty when user enable/disable
increasing ring volume with ramp up time set to 5 sec.
FEIJ-1572
Change-Id: Id32d6b51aab05e80be59bc1912c4ae7c5d114ac5
-rw-r--r-- | src/com/android/settings/notification/IncreasingRingVolumePreference.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/notification/IncreasingRingVolumePreference.java b/src/com/android/settings/notification/IncreasingRingVolumePreference.java index 6b78bbe..8a55eaa 100644 --- a/src/com/android/settings/notification/IncreasingRingVolumePreference.java +++ b/src/com/android/settings/notification/IncreasingRingVolumePreference.java @@ -143,6 +143,8 @@ public class IncreasingRingVolumePreference extends Preference implements mStartVolumeSeekBar.setOnSeekBarChangeListener(this); mRampUpTimeSeekBar.setOnSeekBarChangeListener(this); mRampUpTimeSeekBar.setProgress((rampUpTime / 5) - 1); + mRampUpTimeValue.setText( + Formatter.formatShortElapsedTime(getContext(), rampUpTime * 1000)); } @Override |