mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[Sync] Fix error when user selects no features.
This commit is contained in:
parent
d274a2fed1
commit
de414c912c
@ -94,11 +94,13 @@ class SyncViewListDialog(
|
|||||||
listOfNotNull(*it.toTypedArray())
|
listOfNotNull(*it.toTypedArray())
|
||||||
}
|
}
|
||||||
|
|
||||||
activity.swipeRefreshLayout.isRefreshing = true
|
if (selectedViewIds.isNotEmpty()) {
|
||||||
EdziennikTask.syncProfile(
|
activity.swipeRefreshLayout.isRefreshing = true
|
||||||
App.profileId,
|
EdziennikTask.syncProfile(
|
||||||
selectedViewIds
|
App.profileId,
|
||||||
).enqueue(activity)
|
selectedViewIds
|
||||||
|
).enqueue(activity)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.setNegativeButton(R.string.cancel) { _, _ ->
|
.setNegativeButton(R.string.cancel) { _, _ ->
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user