android: Show a confirmation dialog before importing certificates
Since the import activity can be triggered by any other app on the system we shouldn't just import every certificate we get. Also, in some situations (e.g. if no passphrase has been set yet for the system-wide certificate store) we are the only application that can open certificate files. So if a user clicked on a certificate file she would just get a confirmation Toast about a successful import, with no indication whatsoever where the certificate was actually imported. The new dialog shows the app icon to indicate that strongSwan is involved.
This commit is contained in:
1 parent
1ed922c918
commit
3dc92ff9cf
2 files changed
+123
-14
No files matched your search
@@ -69,7 +69,8 @@
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ui.TrustedCertificateImportActivity"
|
||||
android:label="@string/import_certificate" >
|
||||
android:label="@string/import_certificate"
|
||||
android:theme="@android:style/Theme.Holo.Dialog.NoActionBar" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
Reference in new issue
Block a user