- Thanks to Shripal17 for suggesting list preference instead of a toggle - Add a device specific flashlight check idoybh edits: The current check is for isRingerAudiable and not for DND - change var names and strings so it'll not mislead any future developer or any user Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
94 lines
3.7 KiB
XML
94 lines
3.7 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>
|
|
|
|
<com.cherish.settings.preferences.SystemSettingListPreference
|
|
android:key="flashlight_on_call"
|
|
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="notifications_general_category"
|
|
android:title="@string/general_category">
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="notification_guts_kill_app_button"
|
|
android:title="@string/notification_guts_kill_app_button_title"
|
|
android:summary="@string/notification_guts_kill_app_button_summary"
|
|
android:defaultValue="false" />
|
|
</PreferenceCategory>
|
|
|
|
<Preference
|
|
android:key="charging_light"
|
|
android:fragment="com.cherish.settings.fragments.BatteryLightSettings"
|
|
android:title="@string/battery_light_settings" />
|
|
|
|
<PreferenceCategory
|
|
android:key="headsup_notifications_category"
|
|
android:title="@string/headsup_category">
|
|
|
|
<Preference
|
|
android:key="heads_up_notifications"
|
|
android:summary="@string/heads_up_notifications_summary"
|
|
android:title="@string/heads_up_notifications"
|
|
android:fragment="com.cherish.settings.fragments.HeadsUpSettings"/>
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="less_boring_heads_up"
|
|
android:title="@string/less_boring_heads_up_title"
|
|
android:summary="@string/less_boring_heads_up_summary"
|
|
android:defaultValue="false" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<com.cherish.settings.preferences.SystemSettingSwitchPreference
|
|
android:key="toast_icon"
|
|
android:title="@string/toast_icon_title"
|
|
android:summary="@string/toast_icon_summary"
|
|
android:defaultValue="false" />
|
|
|
|
|
|
</PreferenceScreen>
|