celzero / rethink-app

DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.
https://rethinkfirewall.com/
Apache License 2.0
2.93k stars 148 forks source link

QuickSetting long press action #402

Open ignoramous opened 2 years ago

ignoramous commented 2 years ago

Some apps show a menu on long press on the QuickSetting tile, while others open Settings page of their app.

If we are showing menu, then may be showing options for different modes (DNS, DNS + Firewall, Pause) is an option. If not, taking user to app's homescreen is another.

It would be nice to customize since the default long press action (on Android 11 at least) opens up Android Settings page instead.

ignoramous commented 1 year ago

Apparently, Tasker can call into these shortcuts:

https://github.com/tailscale/tailscale/issues/3547#issuecomment-1191413818

ignoramous commented 1 year ago

See also: #774

ignoramous commented 1 year ago

Yes, upon looking into it further app 'shortcuts' would be the correct way not app 'activities'. And yes that would work with macrodroid.

From my understanding app shortcuts will work fine as long as they are not 'deep shortcuts' (generally meaning dynamic and pinned shortcuts). This post on reddit goes into depth about how these 'deep shortcuts' can't be launched by other apps other than default launcher apps or currently active voice interaction service. If I understand correctly, this means that static shortcuts are the type needed for apps such as tasker and macrodroid to use them.

Don't know if that clarification was already known or not but thought I might mention it anyways.

Originally posted by @Crunchbits in https://github.com/celzero/rethink-app/issues/969#issuecomment-1679950626