From e4f67df30cc3277222d723bb21f352f42de74505 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 26 Nov 2020 08:37:35 +0100 Subject: [PATCH] test for #5039 Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/datamodel/FileDataStorageManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java b/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java index 4e688a8f02b7..dc0750f336b1 100644 --- a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java +++ b/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java @@ -1721,7 +1721,7 @@ public static void triggerMediaScan(String path, OCFile file) { if (path != null) { ContentValues values = new ContentValues(); ContentResolver contentResolver = MainApp.getAppContext().getContentResolver(); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && !TextUtils.isEmpty(path)) { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { if (file != null) { values.put(MediaStore.Images.Media.MIME_TYPE, file.getMimeType()); values.put(MediaStore.Images.Media.TITLE, file.getFileName());