KieronQuinn / TapTap

Port of the double tap on back of device feature from Android 12 to any Android 7.0+ device
GNU General Public License v3.0
3.45k stars 200 forks source link

Gesture tracking should pause when Gates conditions are not met #607

Closed DrSapling closed 1 month ago

DrSapling commented 1 month ago

Gesture tracking should pause when Gates conditions are not met. This would reduce battery drain.

In my case I have Double Tap Action for Flashlight without any requirements. For Gates I have Lock Screen not showing and Screen off. Even though I rarely use the gesture and am not on the lock screen very often, the app still uses 5-10% of the battery (4200mAh).

My suggestion is to prevent gesture tracking if all Gates conditions are not met, or at least have an option to pause tracking when the device screen is off.

KieronQuinn commented 1 month ago

This already happens where possible. Read the battery & optimisation page: https://github.com/KieronQuinn/TapTap/wiki/Battery-and-Optimisation