diff options
Diffstat (limited to 'main/src/ui/java/de/blinkt')
-rw-r--r-- | main/src/ui/java/de/blinkt/openvpn/fragments/Utils.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.java b/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.java index 1813ba1d..3692624b 100644 --- a/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.java +++ b/main/src/ui/java/de/blinkt/openvpn/fragments/Utils.java @@ -125,12 +125,17 @@ public class Utils { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.N) i.setPackage("com.android.documentsui"); + + /* + * Android 11 is much stricter about allowing what to query. Since the app has the + * QUERY_ALL permission we can still check on Android 11 but otherwise we would just + * assume the documents ui to be always there: + */ + + /* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { - /* For some reason checking if the intent is available does not work on Android 11, - * just assume the document storage is always available. - */ return i; - } + }*/ |