summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-03-09 13:05:50 +0100
committerArne Schwabe <arne@rfc2549.org>2014-03-09 13:05:50 +0100
commita0be242ffc728d75f8fa5b583dfac836e8c071c5 (patch)
tree19b3622103c0815643817ec365db052a2597a52d /main/src
parent0f2dd21b8c647b9e8ecc8ec35422fcccd6f2c8fc (diff)
Disable ABI building for now, always use DOCUMENT_OPEN intent
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/fragments/Utils.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java b/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java
index b4ba476b..fc86243a 100644
--- a/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java
+++ b/main/src/main/java/de/blinkt/openvpn/fragments/Utils.java
@@ -22,6 +22,8 @@ import java.util.Vector;
public class Utils {
+
+ @TargetApi(Build.VERSION_CODES.KITKAT)
public static Intent getFilePickerIntent(Context c, FileType fileType) {
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
@@ -102,7 +104,8 @@ public class Utils {
/* fist try with documentsui */
i.setPackage("com.android.documentsui");
- if (!isIntentAvailable(c,i)) {
+ //noinspection ConstantConditions
+ if (true || !isIntentAvailable(c,i)) {
i.setAction(Intent.ACTION_OPEN_DOCUMENT);
i.setPackage(null);
}
@@ -118,6 +121,8 @@ public class Utils {
PackageManager.MATCH_DEFAULT_ONLY);
return list.size() > 0;
}
+
+
public enum FileType {
PKCS12(0),
CLIENT_CERTIFICATE(1),