- Convert ManageAssist into DashboardFragment - Convert default assist pref to DefaultAppPickerFragment - Add PreferenceController for each pref - Add tests Bug: 35203386 Test: make RunSettingsRoboTests Change-Id: I0350a06cae7457809fb261e2d8ec99eda80cc50a
110 lines
4.3 KiB
XML
110 lines
4.3 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_default_dashboard_title">
|
|
|
|
<Preference
|
|
android:key="assist_and_voice_input"
|
|
android:title="@string/assist_and_voice_input_title"
|
|
android:fragment="com.android.settings.applications.assist.ManageAssist"
|
|
android:order="-20"/>
|
|
|
|
<Preference
|
|
android:key="default_browser"
|
|
android:title="@string/default_browser_title"
|
|
android:summary="@string/default_browser_title_none"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultBrowserPicker"
|
|
android:order="-19">
|
|
<extra android:name="for_work" android:value="false"/>
|
|
</Preference>
|
|
|
|
<Preference
|
|
android:key="default_home"
|
|
android:title="@string/home_app"
|
|
android:summary="@string/no_default_home"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultHomePicker"
|
|
settings:keywords="@string/keywords_home"
|
|
android:order="-18"/>
|
|
|
|
<Preference
|
|
android:key="default_phone_app"
|
|
android:title="@string/default_phone_title"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultPhonePicker"
|
|
settings:keywords="@string/keywords_default_phone_app"
|
|
android:order="-17"/>
|
|
|
|
<Preference
|
|
android:key="default_sms_app"
|
|
android:title="@string/sms_application_title"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultSmsPicker"
|
|
settings:keywords="@string/keywords_more_default_sms_app"
|
|
android:order="-16"/>
|
|
|
|
<Preference
|
|
android:key="default_emergency_app"
|
|
android:title="@string/default_emergency_app"
|
|
settings:keywords="@string/keywords_emergency_app"
|
|
android:order="-15"/>
|
|
|
|
<com.android.settings.widget.GearPreference
|
|
android:key="default_autofill"
|
|
android:title="@string/autofill_app"
|
|
android:summary="@string/app_list_preference_none"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultAutoFillPicker"
|
|
settings:keywords="@string/autofill_keywords"
|
|
android:order="-14"/>
|
|
|
|
<!--
|
|
<Preference
|
|
android:key="default_notification_asst_app"
|
|
android:title="@string/default_notification_assistant"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultNotificationAssistantPicker"
|
|
android:order="-13"/>
|
|
-->
|
|
|
|
<Preference
|
|
android:key="domain_urls"
|
|
android:title="@string/domain_urls_title"
|
|
android:fragment="com.android.settings.applications.ManageDomainUrls"/>
|
|
|
|
<com.android.settings.WorkOnlyCategory
|
|
android:key="work_defaults"
|
|
android:title="@string/default_for_work">
|
|
|
|
<Preference
|
|
android:key="work_default_browser"
|
|
android:title="@string/default_browser_title"
|
|
android:summary="@string/default_browser_title_none"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultBrowserPicker">
|
|
<extra android:name="for_work" android:value="true"/>
|
|
</Preference>
|
|
|
|
<Preference
|
|
android:key="work_default_phone_app"
|
|
android:title="@string/default_phone_title"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultPhonePicker"
|
|
settings:keywords="@string/keywords_default_phone_app">
|
|
<extra android:name="for_work" android:value="true"/>
|
|
</Preference>
|
|
|
|
</com.android.settings.WorkOnlyCategory>
|
|
|
|
</PreferenceScreen>
|