summaryrefslogtreecommitdiffstats
path: root/res/xml-v21/preferences_application.xml
blob: 96b838fff148e043138e4504f4c0fcbb848e8a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2015 The Android Open Source 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.
-->
<!-- Preference screen definition for Bugle's application-wide settings -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <!--  KLP+ only -->
    <PreferenceScreen
        android:key="@string/sms_disabled_pref_key"
        android:title="@string/sms_disabled_pref_title"
        android:persistent="false">
        <intent
            android:action="android.provider.Telephony.ACTION_CHANGE_DEFAULT">
            <extra android:name="package" android:value="com.android.messaging" />
        </intent>
    </PreferenceScreen>
    <PreferenceScreen
        android:key="@string/sms_enabled_pref_key"
        android:title="@string/sms_enabled_pref_title"
        android:persistent="false">
        <intent
            android:action="android.settings.WIRELESS_SETTINGS">
        </intent>
    </PreferenceScreen>

    <SwitchPreference
        android:key="@string/send_sound_pref_key"
        android:title="@string/send_sound_pref_title"
        android:defaultValue="@bool/send_sound_pref_default"
        android:persistent="true" />

    <SwitchPreference
        android:key="@string/notifications_enabled_pref_key"
        android:title="@string/notifications_enabled_pref_title"
        android:defaultValue="@bool/notifications_enabled_pref_default"
        android:persistent="true"
        android:disableDependentsState="false" />

    <RingtonePreference
        android:key="@string/notification_sound_pref_key"
        android:title="@string/notification_sound_pref_title"
        android:ringtoneType="notification"
        android:showSilent="true"
        android:showDefault="true"
        android:persistent="true"
        android:defaultValue=""
        android:dependency="@string/notifications_enabled_pref_key" />

    <SwitchPreference
        android:key="@string/notification_vibration_pref_key"
        android:title="@string/notification_vibrate_pref_title"
        android:defaultValue="@bool/notification_vibration_pref_default"
        android:persistent="true"
        android:dependency="@string/notifications_enabled_pref_key" />

    <SwitchPreference
        android:key="pref_show_emoticons"
        android:title="@string/show_emoticons_pref_title"
        android:persistent="true"
        android:defaultValue="@bool/show_emoticons_pref_default"
        android:summary="@string/show_emoticons_pref_summary" />

    <SwitchPreference
        android:key="@string/swipe_right_deletes_conversation_key"
        android:title="@string/swipe_right_deletes_conversation_text"
        android:defaultValue="false"
        android:persistent="true" />

    <PreferenceScreen
            android:key="@string/advanced_pref_key"
            android:title="@string/advanced_settings" />

    <PreferenceCategory
        android:key="@string/debug_pref_key"
        android:title="@string/debug_category_pref_title">

        <SwitchPreference
            android:key="@string/dump_sms_pref_key"
            android:title="@string/dump_sms_pref_title"
            android:summary="@string/dump_sms_pref_summary"
            android:defaultValue="@bool/dump_sms_pref_default" />

        <SwitchPreference
            android:key="@string/dump_mms_pref_key"
            android:title="@string/dump_mms_pref_title"
            android:summary="@string/dump_mms_pref_summary"
            android:defaultValue="@bool/dump_mms_pref_default" />

    </PreferenceCategory>

</PreferenceScreen>