From e5af853fa153faea66c93b8e05e723e37c2f37a1 Mon Sep 17 00:00:00 2001 From: Jonas Mayer Date: Mon, 8 Jan 2024 11:07:11 +0100 Subject: [PATCH] Make code cleaner with linebreak Signed-off-by: Jonas Mayer --- .../android/datamodel/UploadsStorageManager.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java b/app/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java index 6e3203c9eafb..a225d38d4cde 100644 --- a/app/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java +++ b/app/src/main/java/com/owncloud/android/datamodel/UploadsStorageManager.java @@ -89,7 +89,8 @@ public UploadsStorageManager( public long storeUpload(OCUpload ocUpload) { OCUpload existingUpload = getPendingCurrentOrFailedUpload(ocUpload); if (existingUpload != null) { - Log_OC.v(TAG, "Will update upload in db since " + ocUpload.getLocalPath() + " already exists as pending, current or failed upload"); + Log_OC.v(TAG, "Will update upload in db since " + ocUpload.getLocalPath() + " already exists as " + + "pending, current or failed upload"); long existingId = existingUpload.getUploadId(); ocUpload.setUploadId(existingId); updateUpload(ocUpload); @@ -124,7 +125,8 @@ public long[] storeUploads(final List ocUploads) { OCUpload existingUpload = getPendingCurrentOrFailedUpload(ocUpload); if (existingUpload != null) { - Log_OC.v(TAG, "Will update upload in db since " + ocUpload.getLocalPath() + " already exists as pending, current or failed upload"); + Log_OC.v(TAG, "Will update upload in db since " + ocUpload.getLocalPath() + " already exists as" + + " pending, current or failed upload"); ocUpload.setUploadId(existingUpload.getUploadId()); updateUpload(ocUpload); continue; @@ -375,7 +377,13 @@ public OCUpload getPendingCurrentOrFailedUpload(OCUpload upload) { ProviderTableMeta.UPLOADS_ACCOUNT_NAME + "=? and (" + ProviderTableMeta.UPLOADS_STATUS + "=? or " + ProviderTableMeta.UPLOADS_STATUS + "=? )", - new String[]{upload.getRemotePath(), upload.getLocalPath(), upload.getAccountName(), String.valueOf(UploadStatus.UPLOAD_IN_PROGRESS.value), String.valueOf(UploadStatus.UPLOAD_FAILED.value)}, + new String[]{ + upload.getRemotePath(), + upload.getLocalPath(), + upload.getAccountName(), + String.valueOf(UploadStatus.UPLOAD_IN_PROGRESS.value), + String.valueOf(UploadStatus.UPLOAD_FAILED.value) + }, ProviderTableMeta.UPLOADS_REMOTE_PATH + " ASC")) { if (cursor != null) {