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:
@@ -1087,4 +1087,5 @@
|
||||
<string name="smart_pixels_on_power_save_summary">Enable with battery saver to increase power savings</string>
|
||||
<string name="smart_pixels_percent">Percent of pixels to disable</string>
|
||||
<string name="smart_pixels_shift">Burn-in protection interval</string>
|
||||
<string name="smart_pixels_warning_text">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.</string>
|
||||
</resources>
|
||||
|
||||
@@ -47,4 +47,9 @@
|
||||
android:title="@string/smart_pixels_shift"
|
||||
android:dialogTitle="@string/smart_pixels_shift" />
|
||||
|
||||
<com.android.settingslib.widget.FooterPreference
|
||||
android:key="smart_pixels_footer"
|
||||
android:selectable="false"
|
||||
settings:searchable="false" />
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user