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 Dec 27, 2023
1 parent 43f4b1a commit 7443459
Show file tree
Hide file tree
Showing 3 changed files with 1,015 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,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
Loading

0 comments on commit 7443459

Please sign in to comment.