summaryrefslogtreecommitdiffstats
path: root/DeviceSettings
diff options
context:
space:
mode:
authorDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-06-16 18:12:57 +0200
committerDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-06-16 18:12:57 +0200
commitd766d63b9cc7453a90ab5500baf05e537ba497b7 (patch)
tree2523da3c2cc730d1ac7044002e972596f4930993 /DeviceSettings
parente8f81b6fcb954f9c56e8ff3a93b10b4eb6eac3f9 (diff)
downloaddevice_samsung_i9300-d766d63b9cc7453a90ab5500baf05e537ba497b7.zip
device_samsung_i9300-d766d63b9cc7453a90ab5500baf05e537ba497b7.tar.gz
device_samsung_i9300-d766d63b9cc7453a90ab5500baf05e537ba497b7.tar.bz2
settings: fix order of writing touchkey disable and brightness
Diffstat (limited to 'DeviceSettings')
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
index 9afc3c0..e0d225f 100644
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
+++ b/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
@@ -70,8 +70,8 @@ public class ScreenFragmentActivity extends PreferenceFragment {
Log.w(TAG, "key: " + key);
if (key.compareTo(DeviceSettings.KEY_TOUCHKEY_LIGHT) == 0) {
- Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, ((CheckBoxPreference)preference).isChecked() ? "1" : "2");
Utils.writeValue(FILE_TOUCHKEY_DISABLE, ((CheckBoxPreference)preference).isChecked() ? "0" : "1");
+ Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, ((CheckBoxPreference)preference).isChecked() ? "1" : "2");
}
return true;
}
@@ -82,7 +82,7 @@ public class ScreenFragmentActivity extends PreferenceFragment {
public static void restore(Context context) {
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
- Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, sharedPrefs.getString(DeviceSettings.KEY_TOUCHKEY_LIGHT, "1"));
Utils.writeValue(FILE_TOUCHKEY_DISABLE, sharedPrefs.getString(DeviceSettings.KEY_TOUCHKEY_LIGHT, "0"));
+ Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, sharedPrefs.getString(DeviceSettings.KEY_TOUCHKEY_LIGHT, "1"));
}
}