From 0014546dcd041f95770b2565e7c2171d6abb9fea Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 24 May 2018 12:35:19 +0200 Subject: [PATCH] improve file refreshing after rename --- .../gallery/adapters/MediaAdapter.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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() } }