Skip to content

Commit

Permalink
request correct permissions for avatar selection
Browse files Browse the repository at this point in the history
  • Loading branch information
r10s committed Oct 1, 2023
1 parent 8dd88fc commit 08a5381
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public AvatarSelector(@NonNull Context context, @NonNull LoaderManager loaderMan
}

public void show(@NonNull Activity activity, final @NonNull View anchor) {
if (Permissions.hasAll(activity, Manifest.permission.READ_EXTERNAL_STORAGE)) {
if (Permissions.hasAll(activity, Permissions.galleryPermissions())) {
recentRail.setVisibility(View.VISIBLE);
loaderManager.restartLoader(1, null, recentRail);
} else {
Expand Down

0 comments on commit 08a5381

Please sign in to comment.