From 3c4dbb64e98516218a9aea6d933a0cfda825f73e Mon Sep 17 00:00:00 2001 From: A117870935 Date: Thu, 13 Apr 2023 19:49:25 +0530 Subject: [PATCH] Fixed error message coming after camera permission allowed. --- .../com/owncloud/android/ui/activity/FileDisplayActivity.java | 3 +++ app/src/main/res/values-de/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 3 files changed, 5 insertions(+) diff --git a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index effeefba5dd0..2e1f67e6f99b 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -472,6 +472,9 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis // permission was granted getFileOperationsHelper() .uploadFromCamera(this, FileDisplayActivity.REQUEST_CODE__UPLOAD_FROM_CAMERA); + } else if (!shouldShowRequestPermissionRationale(permissions[0])) { + // user CHECKED "never ask again" + DisplayUtils.showSnackMessage(this, R.string.camera_permission_rationale); } break; default: diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 8c437ec0696b..09d9fc21c0d4 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -927,6 +927,7 @@ Herunterladen Video Überlagerungsicon Bitte warten… + Bitte geben Sie unter Apps & Benachrichtigungen in den Einstellungen manuell die Erlaubnis. Überprüfe gespeicherte Anmeldeinformationen Kopiere Datei von privatem Speicher Was-gibt\'s-Neues-Bild diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8fc1cbc3cd8b..af1c7eeb2724 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -995,6 +995,7 @@ Link Name Delete Link Settings + Please navigate to App info in settings and give permission manually. Confirm Strict mode: no HTTP connection allowed! Destination filename