AdguardTeam / AdguardForAndroid

Open bug tracker for Android version of AdGuard.
https://adguard.com/
1.35k stars 90 forks source link

Add a quick setting tile for Android 7 to toggle the VPN on/off #767

Closed Eugene-Savenko closed 8 years ago

Eugene-Savenko commented 8 years ago

1401277

http://android.wonderhowto.com/how-to/add-your-own-quick-settings-tiles-android-7-0-nougat-0173307/

User 1298523 reminded of such a possibility in Nougat: "I've always dreamed of toggling Adguard from the notification shade lol. I don't know, but maybe having a toggle would eliminate the need for the persistent notification. That would be nice."

Please check this: https://developer.android.com/about/versions/nougat/android-7.0.html#tile_api

ameshkov commented 8 years ago

@nkartyshov one important question about the custom tile: does it increase app process priority? http://stackoverflow.com/questions/5437044/does-android-have-a-way-to-display-process-priority-in-adb

nkartyshov commented 8 years ago

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

nkartyshov commented 8 years ago

done