revert to have parenthesis (for readability)

This commit is contained in:
AndyScherzinger 2018-07-05 17:14:26 +02:00
parent ec303f6493
commit c767b93b76
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -72,8 +72,8 @@ public class MediaProvider {
// query media/image folders
Cursor cursorFolders = null;
if (activity != null && PermissionUtil.checkSelfPermission(activity.getApplicationContext(),
Manifest.permission.WRITE_EXTERNAL_STORAGE) || getWithoutActivity) {
if ((activity != null && PermissionUtil.checkSelfPermission(activity.getApplicationContext(),
Manifest.permission.WRITE_EXTERNAL_STORAGE)) || getWithoutActivity) {
cursorFolders = contentResolver.query(IMAGES_MEDIA_URI, IMAGES_FOLDER_PROJECTION, null, null,
IMAGES_FOLDER_SORT_ORDER);
}