fix: don't let the attachment open to preview if in progress or pending download
This commit is contained in:
parent
f59b3a3b61
commit
2c8141c8bb
|
@ -71,6 +71,9 @@ class AlbumThumbnailView : FrameLayout {
|
|||
if (Rect.intersects(rawRect, testRect)) {
|
||||
// hit intersects with this particular child
|
||||
val slide = slides.getOrNull(index) ?: return
|
||||
// only open to downloaded images
|
||||
if (slide.isInProgress || slide.isPendingDownload) return
|
||||
|
||||
ActivityDispatcher.get(context)?.dispatchIntent { context ->
|
||||
MediaPreviewActivity.getPreviewIntent(context, slide, mms)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue