summaryrefslogtreecommitdiffstats
path: root/GNexusParts
diff options
context:
space:
mode:
authorDavid Thompson <david.w.thompson.321@gmail.com>2012-06-05 11:59:06 +0100
committerBrint E. Kriebel <bkriebel@vmware.com>2012-07-11 12:00:39 -0600
commitdc013924e93edc9e77e3edf9c9130a132a439b83 (patch)
tree53fb9485fcbabeb412ac8166abc1d302835cf36f /GNexusParts
parentc9f4d00574a051fa48337179c5cd6b71dd74163f (diff)
downloaddevice_samsung_tuna-dc013924e93edc9e77e3edf9c9130a132a439b83.zip
device_samsung_tuna-dc013924e93edc9e77e3edf9c9130a132a439b83.tar.gz
device_samsung_tuna-dc013924e93edc9e77e3edf9c9130a132a439b83.tar.bz2
Set vibrator force initial value and default correctly.
The seek bar should set a percentage of the max pwm value (127) not the value itself. Change-Id: I5116f3fc18b544abfee9497808988269e54af441
Diffstat (limited to 'GNexusParts')
-rw-r--r--GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java b/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java
index 217ffec..af2824c 100644
--- a/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java
+++ b/GNexusParts/src/com/cyanogenmod/settings/device/VibratorTuningPreference.java
@@ -122,7 +122,7 @@ public class VibratorTuningPreference extends DialogPreference implements OnClic
String sDefaultValue = Utils.readOneLine(filePath);
int iValue = sharedPrefs.getInt(filePath, Integer.valueOf(sDefaultValue));
if (bFirstTime)
- Utils.writeValue(filePath, "127");
+ Utils.writeValue(filePath, "100");
else
Utils.writeValue(filePath, String.valueOf((long) iValue));
}
@@ -246,7 +246,7 @@ public class VibratorTuningPreference extends DialogPreference implements OnClic
int averageValue;
averageValue = (resultVibrator * 100) / 127;
- return resultVibrator;
+ return averageValue;
}
}
@@ -260,7 +260,7 @@ public class VibratorTuningPreference extends DialogPreference implements OnClic
}
private void setDefaultSettings() {
- mSeekBars[0].setNewValue(127);
+ mSeekBars[0].setNewValue(100);
}
}