Configure default reader mode #160 #142

This commit is contained in:
Koitharu
2022-05-12 14:39:15 +03:00
parent 317252e1dd
commit 95d7ca5264
10 changed files with 134 additions and 72 deletions

View File

@@ -3,10 +3,6 @@ package org.koitharu.kotatsu.utils.ext
import androidx.collection.ArraySet
import java.util.*
fun <T : Enum<T>> Array<T>.names() = Array(size) { i ->
this[i].name
}
fun <T> MutableList<T>.move(sourceIndex: Int, targetIndex: Int) {
if (sourceIndex <= targetIndex) {
Collections.rotate(subList(sourceIndex, targetIndex + 1), -1)