OSDN Git Service

Settings: Fix one-time vibration intensity restore
authorGabriele M <moto.falcon.git@gmail.com>
Mon, 28 Mar 2016 21:23:21 +0000 (23:23 +0200)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Mon, 28 Mar 2016 21:46:18 +0000 (14:46 -0700)
Change-Id: I8d9f1288dddc98f58f3565c8927be0642b026a64

src/com/android/settings/hardware/VibratorIntensity.java

index e847933..e55d456 100644 (file)
@@ -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