diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index a81d7cbaa..5b8fbd420 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -259,10 +259,12 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList, fun updateMedia(newMedia: ArrayList) { if (newMedia.hashCode() != currentMediaHash) { currentMediaHash = newMedia.hashCode() - media = newMedia.clone() as ArrayList - enableInstantLoad() - notifyDataSetChanged() - finishActMode() + Handler().postDelayed({ + media = newMedia.clone() as ArrayList + enableInstantLoad() + notifyDataSetChanged() + finishActMode() + }, 100L) } }