summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/notification/IncreasingRingVolumePreference.java
diff options
context:
space:
mode:
authorKeith Mok <kmok@cyngn.com>2016-07-12 09:45:45 -0700
committerKeith Mok <kmok@cyngn.com>2016-07-12 09:49:36 -0700
commit5eb6beb98c2487dcbb9de59f6a1c0e8fb3dae8df (patch)
treea258ad03dd847180a60781df3d81a52d14b0aa23 /src/com/android/settings/notification/IncreasingRingVolumePreference.java
parentde44f4355cac698c2ffab867cc62a3b26a117008 (diff)
downloadpackages_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
Diffstat (limited to 'src/com/android/settings/notification/IncreasingRingVolumePreference.java')
-rw-r--r--src/com/android/settings/notification/IncreasingRingVolumePreference.java2
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