From e232cd9377ce90a0d1cbacfe7b7bfc61867cd158 Mon Sep 17 00:00:00 2001 From: sbrissen Date: Tue, 23 Jul 2013 16:06:26 -0400 Subject: DeviceSettings: fix compile error Change-Id: I270ee8fed2dff59c2ea68ff229ab61ddcef23bac --- .../com/cyanogenmod/settings/device/ScreenFragmentActivity.java | 8 ++++---- 1 file 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); -- cgit v1.1