Switch and SwitchCompat are both CompoundButton.
Using CompoundButton in Java will helps migration in the future.
Bug: 306658427
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
As preparation to upgrade the sdk get rid of this private class.
Fragments must be a public static class to be properly recreated from instance state.
Also change the behaviour to only hide the dialog when confirmed instead of also when it is cancelled.
Change-Id: I171aa2345058edae7520c37942c3c11b3cdfdfdc
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present
Change-Id: I12d27c23624eb5259da582b86ac1bd7572754f0c
* Manually setting the doze status before entering the low-power mode
makes the doze mode not to be set correctly on sweet.
* The doze status is automatically set when entering the low-power mode
This reverts commit 10f101e143.
Change-Id: I4dfee2ffb351b9bc426268e437a26f9eaefec319
getPreferenceScreen().findPreference() does not find preferences
within another PreferenceCategory. That breaks hidin the proximity
category on devices which do not support it.
Change-Id: Ic7d840df7a71905b5b697954a279de51d8d0408a
* Use Theme.SubSettingsBase for theme
* Replace PreferenceActivity with CollapsingToolbarBaseActivity
* Add Titles to prefernce screen
* Remove onOptionsItemSelected and where neccessary move to activity
Change-Id: I25f6dce7cf202487898facfa66e57ced86a85594
* When setting the doze mode to HBM, disabling AOD and enabling it again
the doze mode was still set to HBM but the listpreference was reset to
LBM.
Change-Id: Ibd9682c97757335ac4df48a21c7b64f7b36dd585
* We are using the left led as notification LED and hence it
could be breathing or shining while we open or close the
camera. So we don't just set it's brightness to 0 but read
and store the state of the LED before enabling it and
restoring that afterwards.
* To ensure that the left LED is shining while the camera
opens or closes we set it's breathing effect to 0 before
enabling the LEDs.
Change-Id: Ibdfbff3072398bc77ec3257b60622cfc50e8d857
* Give the motor enough time to close in case it was
still opened on boot without showing the error dialog.
Change-Id: Ibc00a999858f5067bbcf07bfecc779f1d0bf3664
* using updateMotor does not make sense here because it
would only close it when the state is MOTOR_STATUS_POPUP,
but we explicitly also want to try to take it back when
it's jammed.
Change-Id: I7594fe01266a514a9fd780d17a91b0c7f957a1e1