Cherish:Cleanup for android 12
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
android:title="@string/notifications_title"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
||||
|
||||
<PreferenceCategory
|
||||
<!-- <PreferenceCategory
|
||||
android:key="incall_vib_options"
|
||||
android:title="@string/incall_vibration_category">
|
||||
|
||||
@@ -40,191 +40,7 @@
|
||||
android:title="@string/incall_vibrate_disconnect_title"
|
||||
android:defaultValue="true" />
|
||||
|
||||
</PreferenceCategory>
|
||||
</PreferenceCategory> -->
|
||||
|
||||
<!-- Heads up -->
|
||||
<Preference
|
||||
android:key="heads_up_notifications"
|
||||
android:title="@string/heads_up_notifications"
|
||||
android:summary="@string/heads_up_summary"
|
||||
android:icon="@drawable/ic_plus"
|
||||
android:fragment="com.cherish.settings.fragments.HeadsUpSettings" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="less_boring_heads_up"
|
||||
android:icon="@drawable/ic_notification"
|
||||
android:title="@string/less_boring_heads_up_title"
|
||||
android:summary="@string/less_boring_heads_up_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="media_category"
|
||||
android:title="@string/media_category" >
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="artwork_media_background"
|
||||
android:icon="@drawable/ic_media"
|
||||
android:title="@string/artwork_media_background_title"
|
||||
android:summary="@string/artwork_media_background_summary"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
||||
android:key="artwork_media_fade_level"
|
||||
android:title="@string/artwork_media_fade_level_title"
|
||||
android:summary="@string/artwork_media_fade_level_summary"
|
||||
android:dependency="artwork_media_background"
|
||||
android:max="100"
|
||||
settings:min="0"
|
||||
settings:units="%"
|
||||
settings:interval="5"
|
||||
android:defaultValue="30" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="center_notification_headers"
|
||||
android:icon="@drawable/ic_notification_center"
|
||||
android:title="@string/center_notification_headers_title"
|
||||
android:summary="@string/center_notification_headers_summary"
|
||||
android:dependency="notification_headers"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="notification_headers"
|
||||
android:icon="@drawable/ic_notification"
|
||||
android:title="@string/notification_headers_title"
|
||||
android:summary="@string/notification_headers_summary"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<!-- Alert Slider Notifications -->
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="alert_slider_notifications"
|
||||
android:title="@string/alert_slider_notifications_title"
|
||||
android:summary="@string/alert_slider_notifications_summary"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<Preference
|
||||
android:key="notification_light"
|
||||
android:icon="@drawable/ic_light"
|
||||
android:fragment="com.android.settings.applications.manageapplications.ManageApplications"
|
||||
android:title="@string/notification_light_settings" >
|
||||
<extra
|
||||
android:name="classname"
|
||||
android:value="com.android.settings.Settings$NotificationAppListActivity" />
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="charging_light"
|
||||
android:icon="@drawable/ic_battery_almostfull"
|
||||
android:fragment="com.cherish.settings.fragments.BatteryLightSettings"
|
||||
android:title="@string/battery_light_settings" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="notification_sound_vib_screen_on"
|
||||
android:icon="@drawable/ic_notification"
|
||||
android:title="@string/notification_sound_vib_screen_on_title"
|
||||
android:summary="@string/notification_sound_vib_screen_on_summary"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="flashlight_on_call"
|
||||
android:icon="@drawable/ic_flashlight"
|
||||
android:title="@string/flashlight_on_call_title"
|
||||
android:entries="@array/flashlight_on_call_entries"
|
||||
android:entryValues="@array/flashlight_on_call_values"
|
||||
android:defaultValue="0" />
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="pulse_ambient_light_category"
|
||||
android:title="@string/pulse_ambient_light_category" >
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="pulse_ambient_light"
|
||||
android:title="@string/pulse_ambient_light_title"
|
||||
android:summary="@string/pulse_ambient_light_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="ambient_notification_light_enabled"
|
||||
android:title="@string/ambient_notification_light_enabled_title"
|
||||
android:summary="@string/ambient_notification_light_enabled_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="ambient_notification_light_hide_aod"
|
||||
android:title="@string/ambient_notification_light_hide_aod_title"
|
||||
android:summary="@string/ambient_notification_light_hide_aod_summary"
|
||||
android:defaultValue="false"
|
||||
android:dependency="ambient_notification_light_enabled"/>
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="ambient_light_pulse_for_all"
|
||||
android:title="@string/pulse_ambient_light_show_always_title"
|
||||
android:summary="@string/pulse_ambient_light_show_always_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="ambient_notification_light_timeout"
|
||||
android:dialogTitle="@string/ambient_notification_light_timeout_title"
|
||||
android:title="@string/ambient_notification_light_timeout_title"
|
||||
android:entries="@array/ambient_notification_light_timeout_entries"
|
||||
android:entryValues="@array/ambient_notification_light_timeout_values"
|
||||
android:defaultValue="0"
|
||||
android:dependency="ambient_notification_light_enabled"
|
||||
android:summary="%s" />
|
||||
|
||||
<ListPreference
|
||||
android:key="ambient_notification_light_color_mode"
|
||||
android:title="@string/ambient_notification_light_color_mode_title"
|
||||
android:persistent="false"
|
||||
android:entries="@array/ambient_notification_light_color_mode_entries"
|
||||
android:entryValues="@array/ambient_notification_light_color_mode_values"
|
||||
android:defaultValue="2" />
|
||||
|
||||
<net.margaritov.preference.colorpicker.ColorPickerPreference
|
||||
android:key="ambient_notification_light_color"
|
||||
android:summary="@string/ambient_notification_light_color_summary"
|
||||
android:title="@string/ambient_notification_light_color_title"
|
||||
ledPreview="true"
|
||||
settings:defaultColorValue="0xFF3980FF" />
|
||||
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="notification_pulse_duration"
|
||||
android:title="@string/pulse_ambient_light_duration_title"
|
||||
android:summary="@string/pulse_ambient_light_duration_summary"
|
||||
android:persistent="false"
|
||||
android:defaultValue="2"
|
||||
android:max="10"
|
||||
settings:min="1"
|
||||
settings:units="sec"
|
||||
settings:interval="1"
|
||||
android:dependency="pulse_ambient_light" />
|
||||
|
||||
<com.cherish.settings.preferences.CustomSeekBarPreference
|
||||
android:key="notification_pulse_repeats"
|
||||
android:title="@string/pulse_ambient_light_repeat_count_title"
|
||||
android:summary="@string/pulse_ambient_light_repeat_count_summary"
|
||||
android:persistent="false"
|
||||
android:defaultValue="0"
|
||||
android:max="10"
|
||||
settings:min="0"
|
||||
settings:interval="1"
|
||||
android:dependency="pulse_ambient_light" />
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingListPreference
|
||||
android:key="ambient_light_repeat_direction"
|
||||
android:title="@string/pulse_ambient_light_repeat_direction_title"
|
||||
android:entries="@array/pulse_ambient_light_repeat_direction_entries"
|
||||
android:entryValues="@array/pulse_ambient_light_repeat_direction_values"
|
||||
android:defaultValue="0" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
||||
android:key="vibrate_on_notifications"
|
||||
android:icon="@drawable/ic_vibrate"
|
||||
android:title="@string/vibrate_on_notifications_title"
|
||||
android:summary="@string/vibrate_on_notifications_summary"
|
||||
android:defaultValue="true"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
Reference in New Issue
Block a user