mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:45:06 +01:00
missed import on CoverViewTarget
This commit is contained in:
parent
7dbd6a4128
commit
dc80b37dbc
@ -3,12 +3,12 @@ package eu.kanade.tachiyomi.data.image.coil
|
|||||||
import android.graphics.drawable.Drawable
|
import android.graphics.drawable.Drawable
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.widget.ImageView
|
import android.widget.ImageView
|
||||||
|
import androidx.core.view.isVisible
|
||||||
import androidx.vectordrawable.graphics.drawable.VectorDrawableCompat
|
import androidx.vectordrawable.graphics.drawable.VectorDrawableCompat
|
||||||
import coil.target.ImageViewTarget
|
import coil.target.ImageViewTarget
|
||||||
import eu.kanade.tachiyomi.R
|
import eu.kanade.tachiyomi.R
|
||||||
import eu.kanade.tachiyomi.util.system.getResourceColor
|
import eu.kanade.tachiyomi.util.system.getResourceColor
|
||||||
import eu.kanade.tachiyomi.util.view.gone
|
import eu.kanade.tachiyomi.util.view.gone
|
||||||
import eu.kanade.tachiyomi.util.view.visible
|
|
||||||
|
|
||||||
class CoverViewTarget(
|
class CoverViewTarget(
|
||||||
view: ImageView,
|
view: ImageView,
|
||||||
@ -29,7 +29,7 @@ class CoverViewTarget(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onStart(placeholder: Drawable?) {
|
override fun onStart(placeholder: Drawable?) {
|
||||||
progress?.visible()
|
progress?.isVisible = true
|
||||||
view.scaleType = scaleType
|
view.scaleType = scaleType
|
||||||
super.onStart(placeholder)
|
super.onStart(placeholder)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user