Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open AdGuard by long-pressing on the tile icon #1351

Closed
ameshkov opened this issue Jul 31, 2017 · 3 comments
Closed

Open AdGuard by long-pressing on the tile icon #1351

ameshkov opened this issue Jul 31, 2017 · 3 comments
Assignees
Milestone

Comments

@ameshkov
Copy link
Member

Just like you can open Wi-Fi settings by long-pressing on the Wi-Fi toggle.

The same should work for the Oubound Proxy toggle -- long-pressing should bring up the outbound proxy settings.

@Revertron
Copy link

Done in Outbound proxy branch.
But in Android there is no way to know what icon was long-tapped, we can open main activity only.
May be in Android P...

@fazlee712
Copy link

There are a lot of apps that let you make custom tiles to do any action you want on tap/long tap/double tap, etc. Is it not possible to do a similar thing here?

@Revertron
Copy link

https://developer.android.com/reference/android/service/quicksettings/TileService.html#ACTION_QS_TILE_PREFERENCES

The doc says that in Android O we may get the ComponentName that "caused the preferences to be opened", but as always in products of Google - we get a ComponentName that points to the Activity that is started (but we know what activity we are in!). It can not indicate what tile exactly was long-tapped.

And, there is no way to set two different Activities to wait for long taps from different tiles. I've tried, but they just do not work. May be Android is going mad in that case.

@ameshkov ameshkov closed this as completed Aug 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants