Remove duplicate search result when search "Calls" and "Messages".

Settings indexed entries and screen title both, which caused duplicated
result.
so we make screen title as non-searchable to resolve duplicate.

Bug: 155849111
Test: manual
Change-Id: I2d0dd718c25499a574a35509d99668358ce07baa
This commit is contained in:
Edgar Wang
2020-05-15 00:48:05 +08:00
parent 60071b9287
commit badcb4e415
2 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto" xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="zen_mode_calls_settings_page" android:key="zen_mode_calls_settings_page"
settings:searchable="false"
android:title="@string/zen_mode_calls_title"> android:title="@string/zen_mode_calls_title">
<PreferenceCategory <PreferenceCategory

View File

@@ -17,7 +17,9 @@
<PreferenceScreen <PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="zen_mode_messages_settings_page" android:key="zen_mode_messages_settings_page"
settings:searchable="false"
android:title="@string/zen_mode_messages_title" > android:title="@string/zen_mode_messages_title" >
<PreferenceCategory <PreferenceCategory