From 4d3043c0419a4c44c1004d13a8510557c61b1878 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 15 Dec 2019 00:35:28 +0530 Subject: Introduce TunnelToggleActivity On Android 10, apps cannot start services when they're in the background. This means that starting VpnService from within QuickTileService when the app is not active ends badly. To mitigate this situation, we introduce a proxy activity of sorts that will handle starting VpnService for us. The activity is completely transparent and invisible, and does only four things: - Toggle the tunnel state - Request the Tile bound by QuickTileService to refresh its state - Handle any error that might have been thrown during toggle - Call finishAffinity() and go away Signed-off-by: Harsh Shandilya --- app/src/main/res/values/styles.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/src/main/res/values') diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 2605691d..7da1aa9c 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -5,6 +5,19 @@ @color/accent + +