Cherish: Disable dashboards conditions and suggestions (3/3)

Change-Id: I687ac1a48120f9f2b0b42d5811b65fe71f5a1430
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
xyyx
2017-09-07 11:14:09 +08:00
committed by Hưng Phan
parent 162ea20711
commit 77b218d5a2
2 changed files with 24 additions and 0 deletions

View File

@@ -684,4 +684,12 @@
<string name="notification_headers_title">Notification Headers</string>
<string name="notification_headers_summary">Show headers in the notification shade\nRequires a SystemUI restart</string>
<!-- Dashboard -->
<string name="dashboard_conditions_title">Dashboard conditions</string>
<string name="summary_dashboard_conditions_enabled">Dashboard conditions are enabled</string>
<string name="summary_dashboard_conditions_disabled">Dashboard conditions are disabled</string>
<string name="dashboard_suggestions_title">Dashboard suggestions</string>
<string name="summary_dashboard_suggestions_enabled">Dashboard suggestions are enabled</string>
<string name="summary_dashboard_suggestions_disabled">Dashboard suggestions are disabled</string>
</resources>

View File

@@ -18,6 +18,22 @@
android:title="@string/misc_title"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="enable_conditions"
android:icon="@drawable/ic_dashboard"
android:title="@string/dashboard_conditions_title"
android:summaryOn="@string/summary_dashboard_conditions_enabled"
android:summaryOff="@string/summary_dashboard_conditions_disabled"
android:defaultValue="true" />
<com.cherish.settings.preferences.SystemSettingSwitchPreference
android:key="enable_suggestions"
android:icon="@drawable/ic_dashboard"
android:title="@string/dashboard_suggestions_title"
android:summaryOn="@string/summary_dashboard_suggestions_enabled"
android:summaryOff="@string/summary_dashboard_suggestions_disabled"
android:defaultValue="true"/>
<com.cherish.settings.preferences.GlobalSettingSwitchPreference
android:icon="@drawable/ic_plug"
android:key="wake_when_plugged_or_unplugged"