211 lines
9.4 KiB
XML
211 lines
9.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2016 Nitrogen Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:title="@string/notifications_title"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
|
|
|
|
<PreferenceCategory
|
|
android:key="incall_vib_options"
|
|
android:title="@string/incall_vibration_category">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_connect"
|
|
android:icon="@drawable/ic_vibrate"
|
|
android:title="@string/incall_vibrate_connect_title"
|
|
android:defaultValue="true" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_callwaiting"
|
|
android:icon="@drawable/ic_vibrate"
|
|
android:title="@string/incall_vibrate_call_wait_title"
|
|
android:defaultValue="true" />
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="vibrate_on_disconnect"
|
|
android:icon="@drawable/ic_vibrate"
|
|
android:title="@string/incall_vibrate_disconnect_title"
|
|
android:defaultValue="true" />
|
|
|
|
</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" />
|
|
|
|
<!-- Notification background opacity -->
|
|
<com.cherish.settings.preferences.SystemSettingSeekBarPreference
|
|
android:key="notification_bg_alpha"
|
|
android:title="@string/notification_alpha_title"
|
|
android:icon="@drawable/ic_blur"
|
|
android:defaultValue="255"
|
|
android:max="255"
|
|
settings:min="0"
|
|
settings:units="" />
|
|
|
|
|
|
<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" />
|
|
|
|
<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>
|