From 4fee077e7333159e20d737f1855d6f792da32e41 Mon Sep 17 00:00:00 2001 From: Alex Cruz Date: Wed, 18 Apr 2018 01:31:03 -0700 Subject: [PATCH] Cherish: Add Smart Pixels warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ied06c0ec764c5636c40ee4245336612e0d765e84 Signed-off-by: Adin Kwok Signed-off-by: Hưng Phan --- res/values/cherish_strings.xml | 1 + res/xml/cherish_settings_smart_pixels.xml | 5 +++++ .../cherish/settings/preferences/fragments/SmartPixels.java | 3 +++ 3 files changed, 9 insertions(+) diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index 2ba6d6a..4fe540b 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -1087,4 +1087,5 @@ Enable with battery saver to increase power savings Percent of pixels to disable Burn-in protection interval + Smart Pixels is a power saving feature. Depending on how many pixels you decide to turn off, you could see a significant improvement in battery life. For a good user experience, we recommend setting the amount of disabled pixels to 75 percent while shifting every 10 minutes. diff --git a/res/xml/cherish_settings_smart_pixels.xml b/res/xml/cherish_settings_smart_pixels.xml index 35cf985..6b3dea6 100644 --- a/res/xml/cherish_settings_smart_pixels.xml +++ b/res/xml/cherish_settings_smart_pixels.xml @@ -47,4 +47,9 @@ android:title="@string/smart_pixels_shift" android:dialogTitle="@string/smart_pixels_shift" /> + + diff --git a/src/com/cherish/settings/preferences/fragments/SmartPixels.java b/src/com/cherish/settings/preferences/fragments/SmartPixels.java index b8c0f3a..d378269 100644 --- a/src/com/cherish/settings/preferences/fragments/SmartPixels.java +++ b/src/com/cherish/settings/preferences/fragments/SmartPixels.java @@ -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);