- Renamed AdvancedAppSettings to DefaultAppSettings. - Add logic to DefaultAppPreferenceController to also display icon. - Modified DefautlAssistPrefController to suppress gear icon, and use the controller in default app setting UI to display icon. - Remove dynamic injected payment setting activity and create the setting statically in xml. - Add DefaultPaymentSettingsPreference to display default payment app title (no icon because we can't get it) Change-Id: I6b8c768da0bafe5ec9a85ba9c79c7993b449be25 Fix: 36458534 Test: robotests
99 lines
3.8 KiB
XML
99 lines
3.8 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" />
|
|
|
|
<Preference
|
|
android:key="default_browser"
|
|
android:title="@string/default_browser_title"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultBrowserPicker">
|
|
<extra android:name="for_work" android:value="false" />
|
|
</Preference>
|
|
|
|
<Preference
|
|
android:key="default_home"
|
|
android:title="@string/home_app"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultHomePicker"
|
|
settings:keywords="@string/keywords_home" />
|
|
|
|
<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" />
|
|
|
|
<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" />
|
|
|
|
<Preference
|
|
android:key="default_payment_app"
|
|
android:title="@string/nfc_payment_settings_title"
|
|
android:summary="@string/summary_placeholder"
|
|
android:fragment="com.android.settings.nfc.PaymentSettings" />
|
|
|
|
<Preference
|
|
android:key="default_emergency_app"
|
|
android:title="@string/default_emergency_app"
|
|
settings:keywords="@string/keywords_emergency_app" />
|
|
|
|
<!--
|
|
<Preference
|
|
android:key="default_notification_asst_app"
|
|
android:title="@string/default_notification_assistant"
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultNotificationAssistantPicker"
|
|
/>
|
|
-->
|
|
|
|
<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: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>
|