Skip to content

Commit

Permalink
Misc improvement in Util
Browse files Browse the repository at this point in the history
#minor-release

PiperOrigin-RevId: 455380010
(cherry picked from commit 4f5e99c)
  • Loading branch information
christosts authored and rohitjoins committed Jun 16, 2022
1 parent 643e78c commit 5051b47
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ public static boolean maybeRequestReadExternalStoragePermission(
}

private static boolean maybeRequestReadExternalStoragePermission(Activity activity, Uri uri) {
return SDK_INT >= 23 && (isLocalFileUri(uri) || isMediaStoreExternalContentUri(uri))
? requestExternalStoragePermission(activity)
: false;
return SDK_INT >= 23
&& (isLocalFileUri(uri) || isMediaStoreExternalContentUri(uri))
&& requestExternalStoragePermission(activity);
}

private static boolean isMediaStoreExternalContentUri(Uri uri) {
Expand Down

0 comments on commit 5051b47

Please sign in to comment.