mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 18:38:23 +01:00
Rename extension function to avoid confusion with androidx function
This commit is contained in:
parent
d8719ceee9
commit
790d7b9170
@ -30,7 +30,7 @@ import com.github.chrisbanes.photoview.PhotoView
|
|||||||
import eu.kanade.tachiyomi.ui.reader.viewer.webtoon.WebtoonSubsamplingImageView
|
import eu.kanade.tachiyomi.ui.reader.viewer.webtoon.WebtoonSubsamplingImageView
|
||||||
import eu.kanade.tachiyomi.util.system.GLUtil
|
import eu.kanade.tachiyomi.util.system.GLUtil
|
||||||
import eu.kanade.tachiyomi.util.system.animatorDurationScale
|
import eu.kanade.tachiyomi.util.system.animatorDurationScale
|
||||||
import eu.kanade.tachiyomi.util.view.isVisible
|
import eu.kanade.tachiyomi.util.view.isVisibleOnScreen
|
||||||
import java.io.InputStream
|
import java.io.InputStream
|
||||||
import java.nio.ByteBuffer
|
import java.nio.ByteBuffer
|
||||||
|
|
||||||
@ -264,7 +264,7 @@ open class ReaderPageImageView @JvmOverloads constructor(
|
|||||||
object : SubsamplingScaleImageView.DefaultOnImageEventListener() {
|
object : SubsamplingScaleImageView.DefaultOnImageEventListener() {
|
||||||
override fun onReady() {
|
override fun onReady() {
|
||||||
setupZoom(config)
|
setupZoom(config)
|
||||||
if (isVisible()) landscapeZoom(true)
|
if (isVisibleOnScreen()) landscapeZoom(true)
|
||||||
this@ReaderPageImageView.onImageLoaded()
|
this@ReaderPageImageView.onImageLoaded()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ inline fun <reified T : Drawable> T.copy(context: Context): T? {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun View?.isVisible(): Boolean {
|
fun View?.isVisibleOnScreen(): Boolean {
|
||||||
if (this == null) {
|
if (this == null) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user