diff --git a/app/src/main/java/foundation/e/drive/contentScanner/LocalContentScanner.java b/app/src/main/java/foundation/e/drive/contentScanner/LocalContentScanner.java index 23ac48dba64ae4d7d25251bbae193dbeda9485a6..bf988fe0fd050625ffb03313cbde6d06e06248d2 100644 --- a/app/src/main/java/foundation/e/drive/contentScanner/LocalContentScanner.java +++ b/app/src/main/java/foundation/e/drive/contentScanner/LocalContentScanner.java @@ -70,8 +70,6 @@ public class LocalContentScanner extends AbstractContentScanner{ newSyncedFileState.setId( storedId ); Timber.d("Add upload SyncRequest for new file %s", filePath); syncRequests.put(storedId, new SyncRequest(newSyncedFileState, SyncRequest.Type.UPLOAD)); - } else { - Timber.d("Failed to insert (in DB) new SyncedFileState for %s", filePath); } } diff --git a/app/src/main/java/foundation/e/drive/contentScanner/RemoteContentScanner.java b/app/src/main/java/foundation/e/drive/contentScanner/RemoteContentScanner.java index 047bd8ffa8711d85dbf9986f7f9d792d931a36c8..5f32c9acf665822d3b6171c7b0cc23395be066c7 100644 --- a/app/src/main/java/foundation/e/drive/contentScanner/RemoteContentScanner.java +++ b/app/src/main/java/foundation/e/drive/contentScanner/RemoteContentScanner.java @@ -80,8 +80,6 @@ public class RemoteContentScanner extends AbstractContentScanner { newFileState.setId(storedId); Timber.d("Add downloadSyncRequest for new remote file: %s", remoteFilePath); this.syncRequests.put(storedId, new DownloadRequest(file, newFileState)); - } else { - Timber.d("Failed to insert (in DB) new SyncedFileState for remote file %s", remoteFilePath); } } diff --git a/app/src/main/java/foundation/e/drive/utils/CommonUtils.java b/app/src/main/java/foundation/e/drive/utils/CommonUtils.java index 9542f79be016bcd0a72e7ba43895dc50271fdc5c..3f488756393ea6181682324ea645cc9dd498ae84 100644 --- a/app/src/main/java/foundation/e/drive/utils/CommonUtils.java +++ b/app/src/main/java/foundation/e/drive/utils/CommonUtils.java @@ -181,7 +181,7 @@ public abstract class CommonUtils { * @return True if there is connection, false either */ public static boolean haveNetworkConnection(Context context, boolean meteredNetworkAllowed) { - Timber.tag(TAG).v(TAG, "haveNetworkConnection()"); + Timber.tag(TAG).v("haveNetworkConnection()"); final ConnectivityManager cm = context.getSystemService(ConnectivityManager.class); final NetworkCapabilities capabilities = cm.getNetworkCapabilities(cm.getActiveNetwork()); @@ -220,7 +220,7 @@ public abstract class CommonUtils { * @param filePath String containing path the file to update by mediaScanner */ public static void doActionMediaScannerConnexionScanFile(Context context, final String filePath) { - Timber.v(TAG, "doActionMediaScannerConnexionScanFile( %s )", filePath); + Timber.v("doActionMediaScannerConnexionScanFile( %s )", filePath); final String[] filePathArray = new String[] { filePath }; final String[] mimeType = new String[] {getMimeType(new File(filePath))}; MediaScannerConnection.scanFile(context,