- check the feature flag to determine whether to use the existing progressive disclosure mixin or use the expand button in the support library. - add corresponding preference xml files that add the new preference group attribute to use with the expand button in the support lib. Bug: 63985174 Test: make RunSettingsRoboTests Change-Id: Ida6eb6182a8066ad1413b7f6142512345fd914d0
83 lines
3.1 KiB
XML
83 lines
3.1 KiB
XML
<?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/app_and_notification_dashboard_title"
|
|
android:key="apps_and_notification_screen"
|
|
settings:initialExpandedChildrenCount="4">
|
|
|
|
<PreferenceCategory
|
|
android:key="recent_apps_category"
|
|
android:title="@string/recent_app_category_title"
|
|
android:order="-200">
|
|
<!-- Placeholder for a list of recent apps -->
|
|
|
|
<!-- See all apps button -->
|
|
<Preference
|
|
android:title="@string/applications_settings"
|
|
android:key="all_app_info"
|
|
android:order="20">
|
|
<intent
|
|
android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.Settings$ManageApplicationsActivity">
|
|
<extra android:name="show_drawer_menu" android:value="true" />
|
|
</intent>
|
|
</Preference>
|
|
</PreferenceCategory>
|
|
|
|
<!-- Empty category to draw divider -->
|
|
<PreferenceCategory
|
|
android:key="all_app_info_divider"
|
|
android:order="-190"/>
|
|
|
|
<Preference
|
|
android:key="manage_perms"
|
|
android:title="@string/app_permissions"
|
|
android:order="-130"
|
|
settings:keywords="@string/keywords_app_permissions">
|
|
<intent android:action="android.intent.action.MANAGE_PERMISSIONS" />
|
|
</Preference>
|
|
|
|
<PreferenceCategory
|
|
android:key="dashboard_tile_placeholder"
|
|
android:order="10" />
|
|
|
|
<com.android.settingslib.RestrictedPreference
|
|
android:key="app_and_notif_cell_broadcast_settings"
|
|
android:title="@string/cell_broadcast_settings"
|
|
android:order="15"
|
|
settings:useAdminDisabledSummary="true">
|
|
<intent
|
|
android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.cellbroadcastreceiver"
|
|
android:targetClass="com.android.cellbroadcastreceiver.CellBroadcastSettings" />
|
|
</com.android.settingslib.RestrictedPreference>
|
|
|
|
<Preference
|
|
android:key="special_access"
|
|
android:title="@string/special_access"
|
|
android:order="20" >
|
|
<intent
|
|
android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.Settings$SpecialAccessSettingsActivity" />
|
|
</Preference>
|
|
|
|
</PreferenceScreen> |