diff options
author | Gabriele M <moto.falcon.git@gmail.com> | 2016-03-28 23:23:21 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-03-28 14:46:18 -0700 |
commit | bac4604893d4e24682e7bc016c362a2793bf1069 (patch) | |
tree | 0447268cd31eaf05736bf86d852a21d692e25a4f /src/com/android/settings/hardware | |
parent | cfe796030b722da7995eddc75048ed4088aebf73 (diff) | |
download | packages_apps_Settings-bac4604893d4e24682e7bc016c362a2793bf1069.zip packages_apps_Settings-bac4604893d4e24682e7bc016c362a2793bf1069.tar.gz packages_apps_Settings-bac4604893d4e24682e7bc016c362a2793bf1069.tar.bz2 |
Settings: Fix one-time vibration intensity restore
Change-Id: I8d9f1288dddc98f58f3565c8927be0642b026a64
Diffstat (limited to 'src/com/android/settings/hardware')
-rw-r--r-- | src/com/android/settings/hardware/VibratorIntensity.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/settings/hardware/VibratorIntensity.java b/src/com/android/settings/hardware/VibratorIntensity.java index e847933..e55d456 100644 --- a/src/com/android/settings/hardware/VibratorIntensity.java +++ b/src/com/android/settings/hardware/VibratorIntensity.java @@ -166,8 +166,7 @@ public class VibratorIntensity extends DialogPreference implements int percent = prefs.getInt(PREF_NAME, defaultValue); CMSettings.Secure.putInt(context.getContentResolver(), - CMSettings.Secure.VIBRATOR_INTENSITY, percentToIntensity(min, max, - percentToIntensity(min, max, percent))); + CMSettings.Secure.VIBRATOR_INTENSITY, percentToIntensity(min, max, percent)); } @Override |