]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Make certificate import activity properly transparent
authorTobias Brunner <tobias@strongswan.org>
Thu, 7 Jun 2018 15:12:56 +0000 (17:12 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 3 Jul 2018 09:31:33 +0000 (11:31 +0200)
src/frontends/android/app/src/main/AndroidManifest.xml
src/frontends/android/app/src/main/res/values/styles.xml

index 53463fed25a5f3c50a7f8ab0723c676bf036be8c..bfea305cd6356ecc742cf2ed463da88f58ae8371 100644 (file)
         <activity
             android:name=".ui.TrustedCertificateImportActivity"
             android:label="@string/import_certificate"
-            android:theme="@style/AlertDialogTheme" >
+            android:theme="@style/TransparentActivity" >
             <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
                 <category android:name="android.intent.category.DEFAULT" />
index 82a957813b527bfa07d2b534d253d03e2e5e697a..83f34b6e182ff8e2237553daec4b0b24631b0413 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
-    Copyright (C) 2012-2016 Tobias Brunner
+    Copyright (C) 2012-2018 Tobias Brunner
     HSR Hochschule fuer Technik Rapperswil
 
     This program is free software; you can redistribute it and/or modify it
         <item name="colorAccent">@color/accent</item>
     </style>
 
+    <style name="TransparentActivity" parent="Theme.AppCompat.NoActionBar">
+        <item name="android:backgroundDimEnabled">false</item>
+        <item name="android:colorBackgroundCacheHint">@null</item>
+        <item name="android:windowAnimationStyle">@android:style/Animation</item>
+        <item name="android:windowBackground">@android:color/transparent</item>
+        <item name="android:windowIsFloating">true</item>
+        <item name="android:windowIsTranslucent">true</item>
+        <item name="android:windowNoTitle">true</item>
+    </style>
+
 </resources>