mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Allow MediaStore permission check to function with only images enabled.
This commit is contained in:
committed by
Cody Henthorne
parent
4d640ec467
commit
d2ffc11749
@@ -111,7 +111,7 @@ public class StorageUtil {
|
||||
}
|
||||
|
||||
public static boolean canReadFromMediaStore() {
|
||||
return Permissions.hasAll(ApplicationDependencies.getApplication(), PermissionCompat.forImagesAndVideos());
|
||||
return Permissions.hasAny(ApplicationDependencies.getApplication(), PermissionCompat.forImagesAndVideos());
|
||||
}
|
||||
|
||||
public static @NonNull Uri getVideoUri() {
|
||||
|
||||
Reference in New Issue
Block a user