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 731a02623..ee335b249 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -152,13 +152,13 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList, RenameItemDialog(activity, oldPath) { Thread { activity.updateDBMediaPath(oldPath, it) - }.start() - enableInstantLoad() - activity.runOnUiThread { - listener?.refreshItems() - finishActMode() - } + activity.runOnUiThread { + enableInstantLoad() + listener?.refreshItems() + finishActMode() + } + }.start() } }