Cherish: Add Smart Pixels warning

Change-Id: Ied06c0ec764c5636c40ee4245336612e0d765e84
Signed-off-by: Adin Kwok <adin.kwok@carbonrom.org>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Alex Cruz
2018-04-18 01:31:03 -07:00
committed by Hưng Phan
parent 2efab55c9c
commit 4fee077e73
3 changed files with 9 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ public class SmartPixels extends SettingsPreferenceFragment implements
Preference.OnPreferenceChangeListener {
private static final String TAG = "SmartPixels";
private static final String ENABLE = "smart_pixels_enable";
private static final String FOOTER = "smart_pixels_footer";
private static final String ON_POWER_SAVE = "smart_pixels_on_power_save";
private Handler mHandler = new Handler();
@@ -67,6 +68,8 @@ public class SmartPixels extends SettingsPreferenceFragment implements
addPreferencesFromResource(R.xml.cherish_settings_smart_pixels);
findPreference(FOOTER).setTitle(R.string.smart_pixels_warning_text);
resolver = getActivity().getContentResolver();
mSmartPixelsEnable = (SystemSettingSwitchPreference) findPreference(ENABLE);