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.48k stars 201 forks source link

actions should have the option to require all criteria to activate. #235

Open medicoc opened 4 years ago

medicoc commented 4 years ago

for example, in this scenario I'd other to a double tap to play and pause media ONLY when the device is in pocket, screen is off AND headphones are connected. current behavior will trigger the action if any one criteria is met alone. Screenshot_20200919-153411_Tap,_Tap~2

supermegamestre commented 1 year ago

Sounds good

jsnfwlr commented 1 year ago

Grouping requirements in AND groups and OR groups, with nesting would be awesome

So you could have a group (ScreenOff AND InPocket) that requires both those states to be true, then you could put that group into another one ((ScreenOff AND InPocket) OR (ScreenOff AND Charging)), and then you could put THAT group in another one (((ScreenOff AND InPocket) OR (ScreenOff AND Charging)) AND HeadPhonesIn)

That final group could also be simplified to (ScreenOff AND HeadPhonesIn AND (InPocket or Charging))