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)
committerdianlujitao <dianlujitao@lineageos.org>
Sun, 13 Feb 2022 03:36:15 +0000 (11:36 +0800)
commita6801cba0058b6cbdef3f270fd1a22ed2f4909a8
tree6fc55c687cd61c984155532c5f912f5b8bb19c26
parent780aa05ed8d8a852e360f860a7c0ea1fe1ccc79d
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