julian-klode / dns66

DNS-based Host Blocker (and lightweight ad blocker) for Android
https://jak-linux.org/projects/dns66/
GNU General Public License v3.0
2.14k stars 200 forks source link

Add a quick settings toggle tile for android 7.0+ #26

Open IsaacBoy opened 8 years ago

IsaacBoy commented 8 years ago

Add a toggle button in the pull-down shade/menu for android 7.0+ (similar to how PIA app does)

julian-klode commented 8 years ago

I'm not sure what you mean. Do you want to be able to turn DNS66 off directly from the Notification?

IsaacBoy commented 8 years ago

yea toggle it being on / off or connected / not connected from the shade.

image

julian-klode commented 8 years ago

That's cool. I did not know that's possible.

IsaacBoy commented 8 years ago

its new to android 7.0 https://developer.android.com/about/versions/nougat/android-7.0.html#tile_api

i find myself turning dns66 off an on again (cant download apps from play store while its on) alot during the day and that would be really helpful

IsaacBoy commented 8 years ago

https://9to5google.com/2016/11/02/here-are-some-of-the-best-apps-using-android-nougats-quick-settings-tiles-so-far/

julian-klode commented 7 years ago

Hmm, I'm on Android 7 now, so we can start doing that. It sort of depends on #10 though - we need a separate icon for the tile that fits in there - the coloured rectangle with curved edges does not make much sense.

jerryn70 commented 7 years ago

Well it's a good idea , and android 7 below users can use 'custom quick settings' application to add shortcut to notification panel. With "custom quick settings" app i can add "Greenify app's hibernate shortcut to the notification panel . Like that it may possible. (But that option is available only on pro version of custom quick settings app).

Providing widget is also a good idea those don't have money to purchase that app.

The importance of toggle button is some android apps don't work if vpn is enabled like "shareit " so we need to turn off vpn. At this time toggle is a must have feature.

julian-klode commented 7 years ago

@jerryn70 Starting with commit 86af494, you can pause DNS66 from the notification, making that a bit more useful.

smichel17 commented 7 years ago

I'd still appreciate a quick settings tile. I hide DNS66 notifications because I don't like notification clutter and the vpn one already shows when DNS66 is active.

Adding the tile itself should be pretty trivial, it's the icon that's harder. What about the shield with the check mark?

MEntOMANdo commented 1 year ago

This was closed in lieu of a persistent notification action, but that's not the same thing. If the notification is disabled, which I'm sure many people do, the quick shade would be greatly appreciated. Wireguard and most other VPN clients provide this feature, so it's a consistent behavior to implement.

Ch1llb0 commented 2 months ago

The notification is quite annoying and not in line with the behaviour of other VPN apps, so it would be highly appreciated, if a tile could be added 💪🏻