fix: Compatibility with latest AndroidX Work
This commit is contained in:
parent
df10247320
commit
6fdcd4c5c6
|
@ -48,7 +48,7 @@ class SyncWorker(
|
||||||
accounts: Set<AccountId> = emptySet(),
|
accounts: Set<AccountId> = emptySet(),
|
||||||
): Operation {
|
): Operation {
|
||||||
val accountIdsArray = accounts
|
val accountIdsArray = accounts
|
||||||
.map { it.id }
|
.map { it.id as String? }
|
||||||
.toTypedArray()
|
.toTypedArray()
|
||||||
val uploadWorkRequest = OneTimeWorkRequestBuilder<SyncWorker>()
|
val uploadWorkRequest = OneTimeWorkRequestBuilder<SyncWorker>()
|
||||||
.setConstraints(constraints)
|
.setConstraints(constraints)
|
||||||
|
|
Loading…
Reference in New Issue