fix: Update code to latest Android Worker changes making array String elements nullable

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-12-12 18:43:57 +01:00 committed by Tobias Kaminsky
parent dcdac2ca6f
commit e1062d95e4
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ interface BackgroundJobManager {
fun startImmediateFilesSyncJob(
syncedFolderID: Long,
overridePowerSaving: Boolean = false,
changedFiles: Array<String> = arrayOf<String>()
changedFiles: Array<String?> = arrayOf<String?>()
)
fun cancelTwoWaySyncJob()

View file

@ -481,7 +481,7 @@ internal class BackgroundJobManagerImpl(
override fun startImmediateFilesSyncJob(
syncedFolderID: Long,
overridePowerSaving: Boolean,
changedFiles: Array<String>
changedFiles: Array<String?>
) {
val arguments = Data.Builder()
.putBoolean(FilesSyncWork.OVERRIDE_POWER_SAVING, overridePowerSaving)