* Use Theme.SubSettingsBase for theme
* Replace PreferenceActivity with CollapsingToolbarBaseActivity
* Add Titles to preference screen
* Remove onOptionsItemSelected and where necessary move to activity
Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Change-Id: I87af15f5e165aa7bcd556eb2b716c0ce624ca4e7
* Remove unused classes, methods, interfaces, imports
* Reorder imports
* Add final where applicable
* Fix line lengths
* Use local variables where possible
* Replace deprecated Vibrator.vibrate(long) with the successor
* Simplify conditions where they are always met
* Rearrange tags and remove unused schemas in resources
* Merge ScreenReceiver into the service
-> a separate, instantiated but never called-into class makes
one think it's unused
Change-Id: I05cff7ecaf424c166fedceb1f4f8963164c6085a
* The behaviors of stow and proximity sensors are pretty similar, so
there's no need to use both at the same time. Simply use the stow
sensor to handle both hand wave and pick up gestures.
* Switch to timestamp associated with the sensor event to determine the
operation while at it.
Change-Id: I39767cf7b2e48bc2b0baabfac1e47240012f71d6
* This sensor gets triggered by any physical movements of the device.
Slight shakes of your table could even wake up the device, which is
clearly undesired.
* The ordinary pick up gesture is detected by the flat up sensor.
Change-Id: I1fe492e8e23f09adebab38f123f6bb497cc7a0f4
* Actually callback is not registered and never triggered. When user enabled torch with power long press or with qs tile and then do the gesture to disable it (or the other way around), he will have to do the gesture twice since boolean has not been updated.
Change-Id: I03e88b6975300943fbeaf536fdf8552b9e3b3396
* Looks like some variants don't have a CameraActivationSensor, so let's
remove the preference as the user's choice won't have an effect anyway
Change-Id: I7d157a992a6cb9ee333752772bc5e3b647b614f2
* Registering a non-existing sensor causes a RuntimeException which crashes
the Settings app which in turn takes down the whole system
* Change the RuntimeExceptions to normal error loggings
Change-Id: I18a73adc311bec6b70440a3266c7e2af74baa55a