Files
packages_apps_Settings/res/xml/auto_brightness_detail.xml
LibXZR 344fcbbe73 Settings: Add preference for resetting auto brightness adjustment
Change-Id: Iec214a30b1cfe3885b94cfd7c69fe60bc93372a1
Signed-off-by: LibXZR <i@xzr.moe>
2025-12-10 00:41:33 +09:00

59 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2018 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:title="@string/auto_brightness_title">
<com.android.settingslib.widget.IllustrationPreference
android:key="auto_brightness_video"
settings:searchable="false"
settings:lottie_rawRes="@raw/lottie_adaptive_brightness"/>
<com.android.settings.widget.SettingsMainSwitchPreference
android:key="auto_brightness"
android:title="@string/adaptive_brightness_main_switch_title"
settings:keywords="@string/keywords_display_auto_brightness"
settings:userRestriction="no_config_brightness"
settings:controller="com.android.settings.display.AutoBrightnessDetailPreferenceController"/>
<com.android.settingslib.RestrictedSwitchPreference
android:key="auto_brightness_one_shot"
android:title="@string/auto_brightness_one_shot_title"
android:summary="@string/auto_brightness_one_shot_summary"
android:dependency="auto_brightness"
settings:keywords="@string/keywords_display_auto_brightness"
settings:controller="com.android.settings.display.AutoBrightnessOneShotPreferenceController"
settings:useAdminDisabledSummary="true"
settings:userRestriction="no_config_brightness"
settings:allowDividerAbove="true" />
<Preference
android:key="reset_auto_brightness_adjustment"
android:title="@string/reset_auto_brightness_adjustment_title"
android:summary="@string/reset_auto_brightness_adjustment_summary"
settings:controller="com.android.settings.display.ResetAutoBrightnessAdjustmentPreferenceController"/>
<com.android.settingslib.widget.FooterPreference
android:key="auto_brightness_footer"
android:title="@string/auto_brightness_description"
android:selectable="false"
settings:searchable="false" />
</PreferenceScreen>