Files
packages_apps_Settings/res/xml/user_settings.xml
Anna Bauza 935b735fb4 Fix "Turn on phone calls" for guest user
Move "Turn on phone calls" from guest detail user screen to user screen.
Optimisation: Applying restrictions to default guest user has been moved
to UserManagerService -> setDefaultGuestRestrictions.

Following UX there is no need for confirmation dialog.

Bug: 191483069
Test: make RunSettingsRoboTests -j128 ROBOTEST_FILTER="com.android.settings.users.GuestTelephonyPreferenceControllerTest"
       make RunSettingsRoboTests -j128 ROBOTEST_FILTER="com.android.settings.users.UserSettingsTest"
Change-Id: Id7391d3f85954ea7f9c94791f24174105ec8073e
2022-05-28 07:18:40 +00:00

109 lines
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 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-auto"
android:key="user_settings_screen"
android:title="@string/user_settings_title">
<com.android.settingslib.widget.TopIntroPreference
android:key="multiuser_top_intro"
android:title="@string/user_settings_footer_text"
settings:controller="com.android.settings.users.MultiUserTopIntroPreferenceController"/>
<PreferenceCategory
android:key="guest_category"
android:title="@string/guest_category_title"
android:order="2"
settings:searchable="false"/>
<Preference
android:key="guest_exit"
android:title="@string/guest_exit_button"
android:icon="@drawable/ic_guest_exit"
android:order="3"/>
<Preference
android:key="guest_reset"
android:title="@string/guest_reset_button"
android:icon="@drawable/ic_guest_reset"
android:order="4"/>
<Preference
android:key="guest_info"
android:icon="@drawable/ic_info"
android:order="5"
android:selectable="false"/>
<PreferenceCategory
android:key="user_list"
android:title="@string/user_category_title"
android:order="10"
settings:searchable="false"/>
<com.android.settingslib.RestrictedPreference
android:key="user_add"
android:title="@string/user_add_user_or_profile_menu"
android:icon="@drawable/ic_add_40dp"
android:order="20"/>
<com.android.settingslib.RestrictedPreference
android:key="supervised_user_add"
android:title="@*android:string/supervised_user_creation_label"
android:icon="@drawable/ic_add_40dp"
android:order="25"/>
<PreferenceCategory
android:key="guest_user_category"
android:title="@*android:string/guest_name"
android:order="50"/>
<com.android.settingslib.RestrictedPreference
android:key="guest_add"
android:title="@string/guest_new_guest"
android:icon="@drawable/ic_add_40dp"
android:order="55"/>
<com.android.settingslib.RestrictedSwitchPreference
android:key="remove_guest_on_exit"
android:title="@string/remove_guest_on_exit"
android:summary="@string/remove_guest_on_exit_summary"
android:order="60"/>
<com.android.settingslib.RestrictedSwitchPreference
android:key="enable_guest_calling"
android:title="@string/enable_guest_calling"
android:summary="@string/enable_guest_calling_summary"
android:singleLineTitle="false"
android:order="65"/>
<com.android.settingslib.RestrictedSwitchPreference
android:key="user_settings_add_users_when_locked"
android:title="@string/user_add_on_lockscreen_menu"
android:singleLineTitle="false"
android:order="105"
settings:allowDividerAbove="true"/>
<com.android.settingslib.RestrictedPreference
android:key="timeout_to_user_zero_preference"
android:title="@string/switch_to_user_zero_when_docked"
android:order="106"
android:fragment="com.android.settings.users.TimeoutToUserZeroSettings"
settings:controller="com.android.settings.users.TimeoutToUserZeroPreferenceController"/>
</PreferenceScreen>