|
|
@ -39,7 +39,6 @@ open class KThumbnailView: FrameLayout {
|
|
|
|
|
|
|
|
|
|
|
|
private val image by lazy { thumbnail_image }
|
|
|
|
private val image by lazy { thumbnail_image }
|
|
|
|
private val playOverlay by lazy { play_overlay }
|
|
|
|
private val playOverlay by lazy { play_overlay }
|
|
|
|
private val captionIcon by lazy { thumbnail_caption_icon }
|
|
|
|
|
|
|
|
val loadIndicator: View by lazy { thumbnail_load_indicator }
|
|
|
|
val loadIndicator: View by lazy { thumbnail_load_indicator }
|
|
|
|
|
|
|
|
|
|
|
|
private val dimensDelegate = ThumbnailDimensDelegate()
|
|
|
|
private val dimensDelegate = ThumbnailDimensDelegate()
|
|
|
@ -111,7 +110,6 @@ open class KThumbnailView: FrameLayout {
|
|
|
|
|
|
|
|
|
|
|
|
this.slide = slide
|
|
|
|
this.slide = slide
|
|
|
|
|
|
|
|
|
|
|
|
captionIcon.isVisible = slide.caption.isPresent
|
|
|
|
|
|
|
|
loadIndicator.isVisible = slide.isInProgress
|
|
|
|
loadIndicator.isVisible = slide.isInProgress
|
|
|
|
|
|
|
|
|
|
|
|
dimensDelegate.setDimens(naturalWidth, naturalHeight)
|
|
|
|
dimensDelegate.setDimens(naturalWidth, naturalHeight)
|
|
|
|