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

Commit b4fc5ced authored by yuemingw's avatar yuemingw Committed by Yueming Wang
Browse files

Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY.

Test: m -j RunSettingsRoboTests
Fix: 67675787

Change-Id: Ibf5786982e258decea4486431faa45ff1b7480ef
parent 85cd77c9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -99,10 +99,11 @@
        android:fragment="com.android.settings.dream.DreamSettings" />

    <!-- Cross-listed item, if you change this, also change it in power_usage_summary.xml -->
    <Preference
    <com.android.settingslib.RestrictedPreference
        android:key="ambient_display"
        android:title="@string/ambient_display_screen_title"
        android:fragment="com.android.settings.display.AmbientDisplaySettings" />
        android:fragment="com.android.settings.display.AmbientDisplaySettings"
        settings:userRestriction="no_ambient_display" />

    <!-- Hide night mode for now
    <ListPreference
+3 −2
Original line number Diff line number Diff line
@@ -78,10 +78,11 @@
            android:entryValues="@array/screen_timeout_values"/>

        <!-- Cross-listed item, if you change this, also change it in display_settings.xml -->
        <Preference
        <com.android.settingslib.RestrictedPreference
            android:key="ambient_display_battery"
            android:title="@string/ambient_display_screen_title"
            android:fragment="com.android.settings.display.AmbientDisplaySettings" />
            android:fragment="com.android.settings.display.AmbientDisplaySettings"
            settings:userRestriction="no_ambient_display" />

    </PreferenceCategory>