mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
improve file refreshing after rename
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user