summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-08-12 10:19:11 +0200
committerAndrew Dodd <atd7@cornell.edu>2012-09-14 18:14:24 -0400
commit61074b4374be4ffd475295be80e610b28fc59626 (patch)
tree70826cb2aac9ddfb56b86641a963a0df954b26e3
parente15db4821e00a70f74fe533995d34a6897f4ef64 (diff)
downloaddevice_samsung_n7000-61074b4374be4ffd475295be80e610b28fc59626.zip
device_samsung_n7000-61074b4374be4ffd475295be80e610b28fc59626.tar.gz
device_samsung_n7000-61074b4374be4ffd475295be80e610b28fc59626.tar.bz2
settings: fix restoring of touchkey values
-rwxr-xr-xDeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
index 1859f4c..1fcee45 100755
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
+++ b/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
@@ -27,6 +27,7 @@ import android.preference.PreferenceFragment;
import android.preference.PreferenceManager;
import android.preference.PreferenceScreen;
import android.util.Log;
+import com.cyanogenmod.settings.device.R;
public class ScreenFragmentActivity extends PreferenceFragment {
@@ -78,7 +79,6 @@ public class ScreenFragmentActivity extends PreferenceFragment {
@Override
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
- String boxValue;
String key = preference.getKey();
Log.w(TAG, "key: " + key);
@@ -106,8 +106,7 @@ public class ScreenFragmentActivity extends PreferenceFragment {
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean light = sharedPrefs.getBoolean(DeviceSettings.KEY_TOUCHKEY_LIGHT, true);
- Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, light ? "1" : "0");
Utils.writeValue(FILE_TOUCHKEY_DISABLE, light ? "0" : "1");
+ Utils.writeValue(FILE_TOUCHKEY_BRIGHTNESS, light ? "1" : "2");
}
-
}