Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01fe8e58 authored by Chun-Ku Lin's avatar Chun-Ku Lin
Browse files

Make DarkTheme on ColorAndMotion screen not searchable

Bug: 413208784
Test: manual; search dark theme, it shows entry under Display & touch
Test: atest SettingsRoboTests
Flag: EXEMPT low risk bugfix

NO_IFTTT=no changes on preference hierarchy

Change-Id: I02eab9d4b9d8b0df83029b56c8fa662160deab65
parent 2fd74269
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -41,16 +41,16 @@
        settings:controller="com.android.settings.accessibility.ColorInversionPreferenceController"/>

    <!-- DarkModePreference is searchable in the Display & Touch setting.
         With catalyst, we're reusing the same preference. Will let the SettingsSearch
          to determine how to resolve multi-entry on same preference. -->
         Therefore, we set searchable = false here to avoid duplicate search results. -->
    <com.android.settings.display.darkmode.DarkModePreference
        android:key="dark_ui_mode"
        android:key="dark_ui_mode_accessibility"
        android:icon="@drawable/ic_dark_ui"
        android:title="@string/dark_ui_mode"
        android:fragment="com.android.settings.display.darkmode.DarkModeSettingsFragment"
        android:widgetLayout="@null"
        settings:widgetLayout="@null"
        settings:controller="com.android.settings.display.DarkUIPreferenceController" />
        settings:controller="com.android.settings.display.DarkUIPreferenceController"
        settings:searchable="false" />

    <SwitchPreferenceCompat
        android:icon="@drawable/ic_accessibility_animation"