Files
app_Settings/res/xml/power_usage_advanced.xml
mxyyiyi 4c5f8481bd Remove nested PreferenceCategory in Battery Usage page.
https://screenshot.googleplex.com/83LwysPKMCRoRoG

Bug: 349652542
Test: atest BatteryUsageBreakdownControllerTest
Flag: EXEMPT for simple fix
Change-Id: If97b5e3de9757b814ad72aa47f6491d29106b8a3
2024-11-18 11:09:11 +08:00

76 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 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="power_usage_advanced_screen"
android:title="@string/advanced_battery_title"
settings:keywords="@string/keywords_battery_usage">
<PreferenceCategory
android:key="battery_tips_category"
android:layout="@layout/preference_category_no_label"
settings:controller=
"com.android.settings.fuelgauge.batteryusage.BatteryTipsController"
settings:isPreferenceVisible="false">
<com.android.settings.widget.TipCardPreference
android:key="battery_tips_card"
settings:isPreferenceVisible="false" />
</PreferenceCategory>
<com.android.settings.fuelgauge.batteryusage.BatteryHistoryPreference
android:key="battery_chart"
settings:controller=
"com.android.settings.fuelgauge.batteryusage.BatteryChartPreferenceController" />
<PreferenceCategory
android:key="screen_on_time_category"
settings:controller=
"com.android.settings.fuelgauge.batteryusage.ScreenOnTimeController"
settings:isPreferenceVisible="false">
<com.android.settings.fuelgauge.batteryusage.TextViewPreference
android:key="screen_on_time_text"
settings:isPreferenceVisible="false" />
</PreferenceCategory>
<PreferenceCategory
android:key="battery_usage_breakdown"
settings:controller=
"com.android.settings.fuelgauge.batteryusage.BatteryUsageBreakdownController"
settings:isPreferenceVisible="false">
<com.android.settingslib.widget.SettingsSpinnerPreference
android:key="battery_usage_spinner"
android:order="0"
settings:isPreferenceVisible="false" />
<!-- App usage preference list will be added here with the order in range [100, 1000). -->
<com.android.settingslib.widget.FooterPreference
android:key="battery_usage_footer"
android:selectable="false"
android:order="1000"
settings:isPreferenceVisible="false"
settings:searchable="false" />
</PreferenceCategory>
</PreferenceScreen>