Merge "[Settings] Set different ringtones at work profile"
This commit is contained in:
@@ -6048,6 +6048,36 @@
|
||||
<!-- Do not disturb: Title for the Visual interruptions option and associated settings page. [CHAR LIMIT=30] -->
|
||||
<string name="zen_mode_visual_interruptions_settings_title">Block visual disturbances</string>
|
||||
|
||||
<!-- Work Sounds: Work sound settings section header. [CHAR LIMIT=50] -->
|
||||
<string name="sound_work_settings">Work profile sounds</string>
|
||||
|
||||
<!-- Work Sounds: Title for the switch that enables syncing of personal ringtones to work profile. [CHAR LIMIT=30] -->
|
||||
<string name="work_use_personal_sounds_title">Use personal profile sounds</string>
|
||||
|
||||
<!-- Work Sound: Summary for the switch that enables syncing of personal ringtones to work profile. [CHAR LIMIT=60] -->
|
||||
<string name="work_use_personal_sounds_summary">Work profile sounds are the same as personal profile</string>
|
||||
|
||||
<!-- Work Sounds: Title for the option defining the work phone ringtone. [CHAR LIMIT=30] -->
|
||||
<string name="work_ringtone_title">Work phone ringtone</string>
|
||||
|
||||
<!-- Work Sounds: Title for the option defining the default work notification ringtone. [CHAR LIMIT=30] -->
|
||||
<string name="work_notification_ringtone_title">Default work notification tone</string>
|
||||
|
||||
<!-- Work Sound: Title for the option defining the default work alarm ringtone. [CHAR LIMIT=30] -->
|
||||
<string name="work_alarm_ringtone_title">Default work alarm ringtone</string>
|
||||
|
||||
<!-- Work Sound: Summary for sounds when sync with personal sounds is active [CHAR LIMIT=60] -->
|
||||
<string name="work_sound_same_as_personal">Same as personal profile</string>
|
||||
|
||||
<!-- Work Sound: Title for dialog shown when enabling sync with personal sounds. [CHAR LIMIT=30] -->
|
||||
<string name="work_sync_dialog_title">Replace work profile sounds?</string>
|
||||
|
||||
<!-- Work Sound: Confirm action text for dialog shown when enabling sync with personal sounds. [CHAR LIMIT=30] -->
|
||||
<string name="work_sync_dialog_yes">Replace</string>
|
||||
|
||||
<!-- Work Sound: Message for dialog shown when enabling sync with personal sounds. [CHAR LIMIT=none] -->
|
||||
<string name="work_sync_dialog_message">Your current work profile sounds will be replaced with your personal profile sounds</string>
|
||||
|
||||
|
||||
<!-- Configure Notifications Settings title. [CHAR LIMIT=30] -->
|
||||
<string name="configure_notification_settings">Configure notifications</string>
|
||||
|
60
res/xml/sound_work_settings.xml
Normal file
60
res/xml/sound_work_settings.xml
Normal file
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2016 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.
|
||||
-->
|
||||
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
||||
android:title="@string/sound_work_settings"
|
||||
android:key="sound_work_settings">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="sound_work_settings_section"
|
||||
android:title="@string/sound_work_settings">
|
||||
|
||||
<!-- Use the same sounds of the work profile -->
|
||||
<SwitchPreference
|
||||
android:key="work_use_personal_sounds"
|
||||
android:title="@string/work_use_personal_sounds_title"
|
||||
android:summary="@string/work_use_personal_sounds_summary"
|
||||
android:disableDependentsState="true" />
|
||||
|
||||
<!-- Work phone ringtone -->
|
||||
<com.android.settings.DefaultRingtonePreference
|
||||
android:key="work_ringtone"
|
||||
android:title="@string/work_ringtone_title"
|
||||
android:dialogTitle="@string/work_alarm_ringtone_title"
|
||||
android:ringtoneType="ringtone"
|
||||
android:dependency="work_use_personal_sounds" />
|
||||
|
||||
<!-- Default work notification ringtone -->
|
||||
<com.android.settings.DefaultRingtonePreference
|
||||
android:key="work_notification_ringtone"
|
||||
android:title="@string/work_notification_ringtone_title"
|
||||
android:dialogTitle="@string/work_alarm_ringtone_title"
|
||||
android:ringtoneType="notification"
|
||||
android:dependency="work_use_personal_sounds" />
|
||||
|
||||
<!-- Default work alarm ringtone -->
|
||||
<com.android.settings.DefaultRingtonePreference
|
||||
android:key="work_alarm_ringtone"
|
||||
android:title="@string/work_alarm_ringtone_title"
|
||||
android:dialogTitle="@string/work_alarm_ringtone_title"
|
||||
android:persistent="false"
|
||||
android:ringtoneType="alarm"
|
||||
android:dependency="work_use_personal_sounds" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user