Fix missing media progress (#1151)

This commit is contained in:
Andrew 2023-05-01 16:49:01 +09:30 committed by GitHub
parent 70aab2994b
commit a934c5c2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,10 +126,9 @@ open class ThumbnailView: FrameLayout {
buildThumbnailGlideRequest(glide, slide).into(GlideDrawableListeningTarget(binding.thumbnailImage, binding.thumbnailLoadIndicator, result)) buildThumbnailGlideRequest(glide, slide).into(GlideDrawableListeningTarget(binding.thumbnailImage, binding.thumbnailLoadIndicator, result))
} }
slide.hasPlaceholder() -> { slide.hasPlaceholder() -> {
buildPlaceholderGlideRequest(glide, slide).into(GlideBitmapListeningTarget(binding.thumbnailImage, binding.thumbnailLoadIndicator, result)) buildPlaceholderGlideRequest(glide, slide).into(GlideBitmapListeningTarget(binding.thumbnailImage, null, result))
} }
else -> { else -> {
binding.thumbnailLoadIndicator.isVisible = false
glide.clear(binding.thumbnailImage) glide.clear(binding.thumbnailImage)
result.set(false) result.set(false)
} }