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 5fbaca24f..2f5463823 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -164,8 +164,8 @@ class MediaAdapter(val activity: SimpleActivity, var media: MutableList, private fun renameFile() { RenameItemDialog(activity, getCurrentFile().absolutePath) { - listener?.refreshItems() activity.runOnUiThread { + listener?.refreshItems() actMode?.finish() } }