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) {
Thread {
activity.updateDBMediaPath(oldPath, it)
}.start()
enableInstantLoad()
activity.runOnUiThread {
listener?.refreshItems()
finishActMode()
}
activity.runOnUiThread {
enableInstantLoad()
listener?.refreshItems()
finishActMode()
}
}.start()
}
}