Update manga list header

This commit is contained in:
Koitharu
2022-07-08 14:57:53 +03:00
parent 7d41318d15
commit 602a5eb2ab
19 changed files with 187 additions and 81 deletions

View File

@@ -0,0 +1,11 @@
package org.koitharu.kotatsu.utils.ext
import android.icu.lang.UCharacter.GraphemeClusterBreak.T
@Suppress("UNCHECKED_CAST")
fun <T> Class<T>.castOrNull(obj: Any?): T? {
if (obj == null || !isInstance(obj)) {
return null
}
return obj as T
}