mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix spacing
This commit is contained in:
parent
a26aeb6534
commit
e01d9b8456
1 changed files with 55 additions and 50 deletions
|
@ -207,7 +207,10 @@ class DownloadViewModel : ViewModel() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateChildList(context: Context, folder: String) = viewModelScope.launchSafe {
|
fun updateChildList(
|
||||||
|
context: Context,
|
||||||
|
folder: String
|
||||||
|
) = viewModelScope.launchSafe {
|
||||||
val data = withContext(Dispatchers.IO) { context.getKeys(folder) }
|
val data = withContext(Dispatchers.IO) { context.getKeys(folder) }
|
||||||
val visual = withContext(Dispatchers.IO) {
|
val visual = withContext(Dispatchers.IO) {
|
||||||
data.mapNotNull { key ->
|
data.mapNotNull { key ->
|
||||||
|
@ -245,8 +248,10 @@ class DownloadViewModel : ViewModel() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun handleMultiDelete(context: Context, onDeleteConfirm: () -> Unit) =
|
fun handleMultiDelete(
|
||||||
viewModelScope.launchSafe {
|
context: Context,
|
||||||
|
onDeleteConfirm: () -> Unit
|
||||||
|
) = viewModelScope.launchSafe {
|
||||||
val selectedItemsList = selectedItems.value ?: emptyList()
|
val selectedItemsList = selectedItems.value ?: emptyList()
|
||||||
|
|
||||||
val ids = mutableListOf<Int>()
|
val ids = mutableListOf<Int>()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue