Skip to content

Commit

Permalink
Fixed error message coming after camera permission allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
surinder-tsys committed Jan 11, 2024
1 parent e625f45 commit 8be45e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
// 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:
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@
<string name="version_dev_download">Herunterladen</string>
<string name="video_overlay_icon">Video Überlagerungsicon</string>
<string name="wait_a_moment">Bitte warten…</string>
<string name="camera_permission_rationale">Bitte geben Sie unter Apps &amp; Benachrichtigungen in den Einstellungen manuell die Erlaubnis.</string>
<string name="wait_checking_credentials">Überprüfe gespeicherte Anmeldeinformationen</string>
<string name="wait_for_tmp_copy_from_private_storage">Kopiere Datei von privatem Speicher</string>
<string name="webview_version_check_alert_dialog_message">Bitte aktualisieren Sie die Android System WebView-App für eine Anmeldung</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,7 @@
<string name="link_name">Link Name</string>
<string name="delete_link">Delete Link</string>
<string name="share_settings">Settings</string>
<string name="camera_permission_rationale">Please navigate to App info in settings and give permission manually.</string>
<string name="common_confirm">Confirm</string>
<string name="strict_mode">Strict mode: no HTTP connection allowed!</string>
<string name="destination_filename">Destination filename</string>
Expand Down

0 comments on commit 8be45e3

Please sign in to comment.