summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
index d89b6291..930faecd 100644
--- a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
+++ b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
@@ -100,6 +100,10 @@ public class ConfigConverter extends BaseActivity implements FileSelectCallback,
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
+ // Permission declined, do nothing
+ if (grantResults[0] == PackageManager.PERMISSION_DENIED)
+ return;
+
// Reset file select dialogs
findViewById(R.id.files_missing_hint).setVisibility(View.GONE);
findViewById(R.id.permssion_hint).setVisibility(View.GONE);