MotoActions: Use stow sensor for both hand wave and pick up gestures
authordianlujitao <dianlujitao@lineageos.org>
Wed, 2 Feb 2022 10:07:22 +0000 (18:07 +0800)
committerNolen Johnson <johnsonnolen@gmail.com>
Sun, 13 Feb 2022 04:28:07 +0000 (23:28 -0500)
commit276242afab531f4a9f0315ce59f68c6b40b7e5bd
treeee637889f5a66e3c3ae8eae8a268d1af1a805586
parentaa1d43e9fd363ef107596cc49b9f1b5e3c372ef1
MotoActions: Use stow sensor for both hand wave and pick up gestures

 * 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
MotoActions/src/org/lineageos/settings/device/MotoActionsService.java
MotoActions/src/org/lineageos/settings/device/doze/ProximitySensor.java [deleted file]
MotoActions/src/org/lineageos/settings/device/doze/StowSensor.java