1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2021 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<PreferenceScreen 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:title="@string/sound_work_settings"> 20 21 <!-- Use the same sounds of the work profile --> 22 <SwitchPreference 23 android:key="work_use_personal_sounds" 24 android:title="@string/work_use_personal_sounds_title" 25 android:summary="@string/work_use_personal_sounds_summary" 26 android:disableDependentsState="true"/> 27 28 <!-- Work phone ringtone --> 29 <com.android.settings.DefaultRingtonePreference 30 android:key="work_ringtone" 31 android:title="@string/work_ringtone_title" 32 android:dialogTitle="@string/work_alarm_ringtone_title" 33 android:ringtoneType="ringtone" 34 android:dependency="work_use_personal_sounds"/> 35 36 <!-- Default work notification ringtone --> 37 <com.android.settings.DefaultRingtonePreference 38 android:key="work_notification_ringtone" 39 android:title="@string/work_notification_ringtone_title" 40 android:dialogTitle="@string/work_alarm_ringtone_title" 41 android:ringtoneType="notification" 42 android:dependency="work_use_personal_sounds"/> 43 44 <!-- Default work alarm ringtone --> 45 <com.android.settings.DefaultRingtonePreference 46 android:key="work_alarm_ringtone" 47 android:title="@string/work_alarm_ringtone_title" 48 android:dialogTitle="@string/work_alarm_ringtone_title" 49 android:persistent="false" 50 android:ringtoneType="alarm" 51 android:dependency="work_use_personal_sounds"/> 52 53</PreferenceScreen> 54