Files
hardware_samsung-extra_inte…/app/FlashControl/res/xml/flash_settings.xml
roynatech2544 420366b66b app: Update for QPR2
app: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Signed-off-by: RisenID <risen@pixelexperience.org>
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e

app: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427 | AOSP
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Signed-off-by: RisenID <risen@pixelexperience.org>
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835

app: Migrate to SelectorWithWidgetPreference
Change-Id: Ie4aaa1fff836a407c1d8f5b919b7b0051748f5d3

Co-Authored-by: Peter Kalauskas <peskal@google.com>
Co-Authored-by: Chaohui Wang <chaohuiw@google.com>
Co-Authored-by: LuK1337 <priv.luk@gmail.com>
2025-04-27 13:05:06 +09:00

50 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/flash_title">
<com.android.settingslib.widget.MainSwitchPreference
android:defaultValue="false"
android:key="flash_enable"
android:title="@string/flash_enable_title" />
<PreferenceCategory
android:title="@string/flash_status_category">
<Preference
android:key="flash_current_intesity"
android:selectable="false"/>
<Preference
android:key="flash_current_on"
android:selectable="false"/>
</PreferenceCategory>
<PreferenceCategory
android:title="@string/flash_intesities_category">
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="flash_intesity_1"
android:title="@string/flash_intesity_1" />
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="flash_intesity_2"
android:title="@string/flash_intesity_2" />
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="flash_intesity_3"
android:title="@string/flash_intesity_3" />
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="flash_intesity_4"
android:title="@string/flash_intesity_4" />
<com.android.settingslib.widget.SelectorWithWidgetPreference
android:key="flash_intesity_5"
android:title="@string/flash_intesity_5" />
<com.android.settingslib.widget.FooterPreference
android:key="flash_footer"
android:title="@string/flash_footer_summary" />
</PreferenceCategory>
</PreferenceScreen>