From c767b93b761643385d1c82c594a32f16ce2f3c8b Mon Sep 17 00:00:00 2001 From: AndyScherzinger Date: Thu, 5 Jul 2018 17:14:26 +0200 Subject: [PATCH] revert to have parenthesis (for readability) --- .../java/com/owncloud/android/datamodel/MediaProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/owncloud/android/datamodel/MediaProvider.java b/src/main/java/com/owncloud/android/datamodel/MediaProvider.java index b70ebd3355..72997bcac1 100644 --- a/src/main/java/com/owncloud/android/datamodel/MediaProvider.java +++ b/src/main/java/com/owncloud/android/datamodel/MediaProvider.java @@ -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); }