Selection and reodering favourites categories

This commit is contained in:
Koitharu
2022-07-09 16:52:55 +03:00
parent 451b9fc0f1
commit 80db7f0b74
30 changed files with 431 additions and 428 deletions

View File

@@ -0,0 +1,13 @@
package org.koitharu.kotatsu.utils.ext
import android.graphics.Rect
import kotlin.math.roundToInt
fun Rect.scale(factor: Double) {
val newWidth = (width() * factor).roundToInt()
val newHeight = (height() * factor).roundToInt()
inset(
(width() - newWidth) / 2,
(height() - newHeight) / 2,
)
}