From 5eb6beb98c2487dcbb9de59f6a1c0e8fb3dae8df Mon Sep 17 00:00:00 2001 From: Keith Mok Date: Tue, 12 Jul 2016 09:45:45 -0700 Subject: [PATCH] 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 --- .../android/settings/notification/IncreasingRingVolumePreference.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/settings/notification/IncreasingRingVolumePreference.java b/src/com/android/settings/notification/IncreasingRingVolumePreference.java index 6b78bbe06a..8a55eaae47 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 -- 2.11.0