Switch and SwitchCompat are both CompoundButton.
Using CompoundButton in Java will helps migration in the future.
Bug: 306658427 | AOSP | AOSP
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
* Reference e7db7fc560
* Adapted and rewritten in Kt
* Use Theme.SubSettingsBase for theme
* Replace PreferenceActivity with CollapsingToolbarBaseActivity
* Add Titles to preference screen
* Remove onOptionsItemSelected and where neccessary move to activity
Change-Id: I4d35ade6f45022944df4db787948c03b5bc14e5f
Signed-off-by: Rohan Hasabe <rohanhasabe8@gmail.com>
Signed-off-by: Bruno Martins <bgcngm@gmail.com>
Targeting S+ (version 31 and above) requires that an explicit value
for android:exported be defined when intent filters are present
Change-Id: I12d27c23624eb5259da582b86ac1bd7572754f0c
* Highly inspired by iOS raise to wake
- Adapted to OnePlus sdm845 doze
doze: Add min interval for raise2wake
* avoid having early wakeup
* also fix typo in acquire timeout
doze: Enable pickup when raise to wake is toggled
- This is needed in order for raise to wake to function properly.
doze: Fix pickup status for raise to wake
Co-authored-by: AnierinB <anierinb@evolution-x.org>
Co-authored-by: AshutoshSundresh <ashutoshsundresh@gmail.com>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Signed-off-by: AnierinB <anierinb@evolution-x.org>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: LuK1337 <priv.luk@gmail.com>
Change-Id: I5df0c4f11f1b24ab813abc393960c5f03f5fab1f
This brings SwitchBar widget inline with 10 and fixes the
theme issues when the dark mode is enabled.
Change-Id: I6909b77bc649eb9eb760bf01b46f66570363e9d9
* There's no need to manually write to the gestures prefs
as long we are sure the handler is run after we return true
in the onPreferenceChangeListner
Change-Id: I090c0c6c91267aff69c45365b95b5f5e26d07b07
* This makes the always on display mode feature visible for those
devices that explicitly set it as available via AOSP overlay.
Should only be enabled on devices where the display has been tuned
to be power efficient in DOZE and/or DOZE_SUSPEND states.
Change-Id: If543936f9421dd7a6c0be594f7cb76afb227e34b
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.
Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.
Bug: 73535841
Change-Id: I61299717ab2a6a1fd9a14dde7e1c7961388f722a
* Based off android_device_oneplus_oneplus3 doze app but
with proximity related features stripped out and updated
pickup sensor name.
Change-Id: I9f81b153948069cd4370c75817f12e91f6869e1d