1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2015 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 <!-- Preference screen definition for Bugle's application-wide settings --> 18 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> 19 20 <!-- KLP+ only --> 21 <PreferenceScreen 22 android:key="@string/sms_disabled_pref_key" 23 android:title="@string/sms_disabled_pref_title" 24 android:persistent="false"> 25 <intent 26 android:action="android.provider.Telephony.ACTION_CHANGE_DEFAULT"> 27 <extra android:name="package" android:value="com.android.messaging" /> 28 </intent> 29 </PreferenceScreen> 30 <PreferenceScreen 31 android:key="@string/sms_enabled_pref_key" 32 android:title="@string/sms_enabled_pref_title" 33 android:persistent="false"> 34 <intent 35 android:action="android.settings.WIRELESS_SETTINGS"> 36 </intent> 37 </PreferenceScreen> 38 39 <CheckBoxPreference 40 android:key="@string/send_sound_pref_key" 41 android:title="@string/send_sound_pref_title" 42 android:defaultValue="@bool/send_sound_pref_default" 43 android:persistent="true" /> 44 45 <CheckBoxPreference 46 android:key="@string/notifications_enabled_pref_key" 47 android:title="@string/notifications_enabled_pref_title" 48 android:defaultValue="@bool/notifications_enabled_pref_default" 49 android:persistent="true" 50 android:disableDependentsState="false" /> 51 52 <RingtonePreference 53 android:key="@string/notification_sound_pref_key" 54 android:title="@string/notification_sound_pref_title" 55 android:ringtoneType="notification" 56 android:showSilent="true" 57 android:showDefault="true" 58 android:persistent="true" 59 android:defaultValue="" 60 android:dependency="@string/notifications_enabled_pref_key" /> 61 62 <CheckBoxPreference 63 android:key="@string/notification_vibration_pref_key" 64 android:title="@string/notification_vibrate_pref_title" 65 android:defaultValue="@bool/notification_vibration_pref_default" 66 android:persistent="true" 67 android:dependency="@string/notifications_enabled_pref_key" /> 68 69 <PreferenceScreen 70 android:key="@string/advanced_pref_key" 71 android:title="@string/advanced_settings" /> 72 73 <PreferenceCategory 74 android:key="@string/debug_pref_key" 75 android:title="@string/debug_category_pref_title"> 76 77 <CheckBoxPreference 78 android:key="@string/dump_sms_pref_key" 79 android:title="@string/dump_sms_pref_title" 80 android:summary="@string/dump_sms_pref_summary" 81 android:defaultValue="@bool/dump_sms_pref_default" /> 82 83 <CheckBoxPreference 84 android:key="@string/dump_mms_pref_key" 85 android:title="@string/dump_mms_pref_title" 86 android:summary="@string/dump_mms_pref_summary" 87 android:defaultValue="@bool/dump_mms_pref_default" /> 88 89 </PreferenceCategory> 90 91 </PreferenceScreen> 92