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 <!-- MNC+ only --> 31 <PreferenceScreen 32 android:key="@string/sms_enabled_pref_key" 33 android:title="@string/sms_enabled_pref_title" 34 android:persistent="false"> 35 <intent 36 android:action="android.provider.Telephony.ACTION_CHANGE_DEFAULT"> 37 </intent> 38 </PreferenceScreen> 39 40 <SwitchPreference 41 android:key="@string/send_sound_pref_key" 42 android:title="@string/send_sound_pref_title" 43 android:defaultValue="@bool/send_sound_pref_default" 44 android:persistent="true" /> 45 46 <SwitchPreference 47 android:key="@string/notifications_enabled_pref_key" 48 android:title="@string/notifications_enabled_pref_title" 49 android:defaultValue="@bool/notifications_enabled_pref_default" 50 android:persistent="true" 51 android:disableDependentsState="false" /> 52 53 <RingtonePreference 54 android:key="@string/notification_sound_pref_key" 55 android:title="@string/notification_sound_pref_title" 56 android:ringtoneType="notification" 57 android:showSilent="true" 58 android:showDefault="true" 59 android:persistent="true" 60 android:defaultValue="" 61 android:dependency="@string/notifications_enabled_pref_key" /> 62 63 <SwitchPreference 64 android:key="@string/notification_vibration_pref_key" 65 android:title="@string/notification_vibrate_pref_title" 66 android:defaultValue="@bool/notification_vibration_pref_default" 67 android:persistent="true" 68 android:dependency="@string/notifications_enabled_pref_key" /> 69 70 <PreferenceScreen 71 android:key="@string/advanced_pref_key" 72 android:title="@string/advanced_settings" /> 73 74 <PreferenceCategory 75 android:key="@string/debug_pref_key" 76 android:title="@string/debug_category_pref_title"> 77 78 <SwitchPreference 79 android:key="@string/dump_sms_pref_key" 80 android:title="@string/dump_sms_pref_title" 81 android:summary="@string/dump_sms_pref_summary" 82 android:defaultValue="@bool/dump_sms_pref_default" /> 83 84 <SwitchPreference 85 android:key="@string/dump_mms_pref_key" 86 android:title="@string/dump_mms_pref_title" 87 android:summary="@string/dump_mms_pref_summary" 88 android:defaultValue="@bool/dump_mms_pref_default" /> 89 90 </PreferenceCategory> 91 92</PreferenceScreen> 93