summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbrissen <sbrissen@hotmail.com>2013-07-23 16:06:26 -0400
committersbrissen <sbrissen@hotmail.com>2013-07-23 16:06:26 -0400
commite232cd9377ce90a0d1cbacfe7b7bfc61867cd158 (patch)
tree020e0b33c569763a6a193f22f83b46eabae493fa
parent02624f240fdfeab58ac22d3a120e013959cba0a4 (diff)
downloaddevice_samsung_smdk4412-common-e232cd9377ce90a0d1cbacfe7b7bfc61867cd158.tar.gz
device_samsung_smdk4412-common-e232cd9377ce90a0d1cbacfe7b7bfc61867cd158.tar.bz2
device_samsung_smdk4412-common-e232cd9377ce90a0d1cbacfe7b7bfc61867cd158.zip
DeviceSettings: fix compile error
Change-Id: I270ee8fed2dff59c2ea68ff229ab61ddcef23bac
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
index e7e1b33..669cc44 100644
--- a/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
+++ b/DeviceSettings/src/com/cyanogenmod/settings/device/ScreenFragmentActivity.java
@@ -60,17 +60,17 @@ public class ScreenFragmentActivity extends PreferenceFragment {
/* CABC */
mCABC = (CABC) findPreference(DeviceSettings.KEY_CABC);
- mCABC.setEnabled(CABC.isSupported());
+ mCABC.setEnabled(CABC.isSupported(res.getString(R.string.mdnie_cabc_sysfs_file)));
/* mDNIe */
mmDNIeScenario = (mDNIeScenario) findPreference(DeviceSettings.KEY_MDNIE_SCENARIO);
- mmDNIeScenario.setEnabled(mDNIeScenario.isSupported());
+ mmDNIeScenario.setEnabled(mDNIeScenario.isSupported(res.getString(R.string.mdnie_scenario_sysfs_file)));
mmDNIeMode = (mDNIeMode) findPreference(DeviceSettings.KEY_MDNIE_MODE);
- mmDNIeMode.setEnabled(mDNIeMode.isSupported());
+ mmDNIeMode.setEnabled(mDNIeMode.isSupported(res.getString(R.string.mdnie_mode_sysfs_file)));
mmDNIeNegative = (mDNIeNegative) findPreference(DeviceSettings.KEY_MDNIE_NEGATIVE);
- mmDNIeNegative.setEnabled(mDNIeNegative.isSupported());
+ mmDNIeNegative.setEnabled(mDNIeNegative.isSupported(res.getString(R.string.mdnie_negative_sysfs_file)));
/* LED */
mLedFade = (LedFade) findPreference(DeviceSettings.KEY_LED_FADE);