Ia012232ba2856e0757289982bc3045d948ff4aa8 replace the "Autofill service" preference title with the earlier summary string. The change in title causes search to not find the preference anymore. This change adds back the title in xml, which makes search find it again. The Controller code still overwrites the title with the application name. Also fixes DefaultAutofillPreferenceControllerTest. Bug: 192403526 Test: manual - clear Settings Services storage -> search "fill" -> click link Test: make -j64 RunSettingsRoboTests \ ROBOTEST_FILTER="com.android.settings.applications.defaultapps.DefaultAutofillPreferenceControllerTest" Change-Id: I9714b3efd2a5a7d9ee7eef345415fa020ef0dc61
73 lines
2.8 KiB
XML
73 lines
2.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-auto"
|
|
android:key="user_and_account_settings_screen"
|
|
android:title="@string/account_dashboard_title"
|
|
settings:keywords="@string/keywords_accounts">
|
|
|
|
<PreferenceCategory
|
|
android:key="passwords_category"
|
|
android:order="10"
|
|
android:persistent="false"
|
|
android:title="@string/autofill_passwords"
|
|
settings:controller="com.android.settings.applications.autofill.PasswordsPreferenceController"
|
|
settings:keywords="@string/autofill_keywords" />
|
|
|
|
<PreferenceCategory
|
|
android:key="default_service_category"
|
|
android:order="20"
|
|
android:title="@string/autofill_app">
|
|
|
|
<com.android.settings.widget.GearPreference
|
|
android:fragment="com.android.settings.applications.defaultapps.DefaultAutofillPicker"
|
|
android:key="default_autofill_main"
|
|
android:title="@string/autofill_app"
|
|
settings:keywords="@string/autofill_keywords">
|
|
<extra
|
|
android:name="for_work"
|
|
android:value="false" />
|
|
</com.android.settings.widget.GearPreference>
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
android:key="dashboard_tile_placeholder"
|
|
android:order="130"/>
|
|
|
|
<SwitchPreference
|
|
android:key="auto_sync_account_data"
|
|
android:title="@string/auto_sync_account_title"
|
|
android:summary="@string/auto_sync_account_summary"
|
|
android:order="202"
|
|
settings:allowDividerAbove="true"/>
|
|
|
|
<SwitchPreference
|
|
android:key="auto_sync_work_account_data"
|
|
android:title="@string/account_settings_menu_auto_sync_work"
|
|
android:summary="@string/auto_sync_account_summary"
|
|
settings:forWork="true"
|
|
android:order="203"/>
|
|
|
|
<SwitchPreference
|
|
android:key="auto_sync_personal_account_data"
|
|
android:title="@string/account_settings_menu_auto_sync_personal"
|
|
android:summary="@string/auto_sync_account_summary"
|
|
android:order="204"/>
|
|
|
|
</PreferenceScreen>
|