improve file refreshing after rename

This commit is contained in:
tibbi 2018-05-24 12:35:19 +02:00
parent 519df9e8a1
commit 0014546dcd

View file

@ -152,13 +152,13 @@ class MediaAdapter(activity: BaseSimpleActivity, var media: MutableList<Medium>,
RenameItemDialog(activity, oldPath) { RenameItemDialog(activity, oldPath) {
Thread { Thread {
activity.updateDBMediaPath(oldPath, it) activity.updateDBMediaPath(oldPath, it)
}.start()
enableInstantLoad() activity.runOnUiThread {
activity.runOnUiThread { enableInstantLoad()
listener?.refreshItems() listener?.refreshItems()
finishActMode() finishActMode()
} }
}.start()
} }
} }