Fix spacing

This commit is contained in:
Luna712 2024-07-10 15:19:27 -06:00 committed by GitHub
parent a26aeb6534
commit e01d9b8456
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 visual = withContext(Dispatchers.IO) {
data.mapNotNull { key ->
@ -245,8 +248,10 @@ class DownloadViewModel : ViewModel() {
}
}
fun handleMultiDelete(context: Context, onDeleteConfirm: () -> Unit) =
viewModelScope.launchSafe {
fun handleMultiDelete(
context: Context,
onDeleteConfirm: () -> Unit
) = viewModelScope.launchSafe {
val selectedItemsList = selectedItems.value ?: emptyList()
val ids = mutableListOf<Int>()