Rename extension function to avoid confusion with androidx function

This commit is contained in:
arkon 2022-02-12 11:23:10 -05:00
parent d8719ceee9
commit 790d7b9170
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ import com.github.chrisbanes.photoview.PhotoView
import eu.kanade.tachiyomi.ui.reader.viewer.webtoon.WebtoonSubsamplingImageView
import eu.kanade.tachiyomi.util.system.GLUtil
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.nio.ByteBuffer
@ -264,7 +264,7 @@ open class ReaderPageImageView @JvmOverloads constructor(
object : SubsamplingScaleImageView.DefaultOnImageEventListener() {
override fun onReady() {
setupZoom(config)
if (isVisible()) landscapeZoom(true)
if (isVisibleOnScreen()) landscapeZoom(true)
this@ReaderPageImageView.onImageLoaded()
}

View File

@ -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) {
return false
}