summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res/values/styles.xml
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2019-12-15 00:35:28 +0530
committerJason A. Donenfeld <Jason@zx2c4.com>2019-12-20 11:26:33 +0100
commit4d3043c0419a4c44c1004d13a8510557c61b1878 (patch)
treec7d7edc17812a7d6b55663ef683ab2af774c0fd4 /app/src/main/res/values/styles.xml
parent8261a184721c58366bc9f0a00487d585ff45fb27 (diff)
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 <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res/values/styles.xml')
-rw-r--r--app/src/main/res/values/styles.xml13
1 files changed, 13 insertions, 0 deletions
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 @@
<item name="colorAccent">@color/accent</item>
</style>
+ <style name="NoBackgroundTheme" parent="AppTheme">
+ <item name="android:windowIsTranslucent">true</item>
+ <item name="android:windowContentOverlay">@null</item>
+ <item name="android:windowNoTitle">true</item>
+ <item name="android:windowActionBar">false</item>
+ <item name="android:windowBackground">@android:color/transparent</item>
+ <item name="android:background">@android:color/transparent</item>
+ <item name="colorPrimaryDark">@android:color/transparent</item>
+ <item name="android:backgroundDimEnabled">true</item>
+ <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
+ <item name="android:windowExitAnimation">@android:anim/fade_out</item>
+ </style>
+
<style name="fab_label" parent="TextAppearance.AppCompat.Inverse">
<item name="android:background">@drawable/fab_label_background</item>
<item name="android:textColor">@color/fab_label_text_color</item>