Refactored User Settings UI to have two types of users. Display a list of apps to select. Edit user restrictions. Handle saving and updating RestrictionEntry items via User Manager. Change-Id: I3ad5aa71d5ef66dffd39e17ba0556f075ac10a0f
54 lines
2.1 KiB
XML
54 lines
2.1 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/com.android.settings"
|
|
android:title="@string/user_settings_title">
|
|
|
|
<PreferenceCategory
|
|
android:key="user_you"
|
|
android:title="@string/user_you_section"/>
|
|
<Preference
|
|
android:key="user_me"
|
|
android:summary="@string/user_owner" />
|
|
<com.android.settings.SelectableEditTextPreference
|
|
android:key="user_nickname"
|
|
android:title="@string/user_nickname"
|
|
android:icon="@drawable/empty_icon" />
|
|
<Preference
|
|
android:key="user_owner_info"
|
|
android:title="@string/owner_info_settings_title"
|
|
android:icon="@drawable/empty_icon"
|
|
android:fragment="com.android.settings.OwnerInfoSettings" />
|
|
|
|
<PreferenceCategory
|
|
android:key="user_list"
|
|
android:title="@string/user_list_title">
|
|
</PreferenceCategory>
|
|
|
|
<Preference
|
|
android:key="user_add_restricted"
|
|
android:title="@string/user_add_restricted"
|
|
android:summary="@string/user_add_restricted_summary"
|
|
android:icon="@drawable/ic_menu_add" />
|
|
|
|
<Preference
|
|
android:key="user_add_trusted"
|
|
android:title="@string/user_add_trusted"
|
|
android:summary="@string/user_add_trusted_summary"
|
|
android:icon="@drawable/ic_menu_add" />
|
|
</PreferenceScreen>
|