mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
adding a threading crashfix
This commit is contained in:
parent
48885a8ac6
commit
80def97201
1 changed files with 4 additions and 1 deletions
|
@ -217,7 +217,10 @@ fun BaseSimpleActivity.toggleFileVisibility(oldPath: String, hide: Boolean, call
|
|||
|
||||
val newPath = "$path/$filename"
|
||||
renameFile(oldPath, newPath) {
|
||||
runOnUiThread {
|
||||
callback?.invoke(newPath)
|
||||
}
|
||||
|
||||
ensureBackgroundThread {
|
||||
updateDBMediaPath(oldPath, newPath)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue