Add additional checks to download task #50

This commit is contained in:
Koitharu
2022-04-17 09:47:21 +03:00
parent 74c9fa9488
commit d61ba80bf6
8 changed files with 73 additions and 85 deletions

View File

@@ -3,8 +3,6 @@ package org.koitharu.kotatsu.utils.ext
import androidx.collection.ArraySet
import java.util.*
fun LongArray.toArraySet(): Set<Long> = createSet(size) { i -> this[i] }
fun <T : Enum<T>> Array<T>.names() = Array(size) { i ->
this[i].name
}