From 30ba7ddaf063410e0ac81ce436e4afb6c4895b8d Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Thu, 12 Dec 2024 18:43:57 +0100 Subject: [PATCH] fix: Update code to latest Android Worker changes making array String elements nullable Signed-off-by: Andy Scherzinger --- .../main/java/com/nextcloud/client/jobs/BackgroundJobManager.kt | 2 +- .../java/com/nextcloud/client/jobs/BackgroundJobManagerImpl.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManager.kt b/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManager.kt index 6201f0439ecd..9290e2e4e622 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManager.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManager.kt @@ -127,7 +127,7 @@ interface BackgroundJobManager { fun startImmediateFilesSyncJob( syncedFolderID: Long, overridePowerSaving: Boolean = false, - changedFiles: Array = arrayOf() + changedFiles: Array = arrayOf() ) fun cancelTwoWaySyncJob() diff --git a/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManagerImpl.kt b/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManagerImpl.kt index 7736098433de..422d5a924c9d 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManagerImpl.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/BackgroundJobManagerImpl.kt @@ -481,7 +481,7 @@ internal class BackgroundJobManagerImpl( override fun startImmediateFilesSyncJob( syncedFolderID: Long, overridePowerSaving: Boolean, - changedFiles: Array + changedFiles: Array ) { val arguments = Data.Builder() .putBoolean(FilesSyncWork.OVERRIDE_POWER_SAVING, overridePowerSaving)