adding a threading crashfix

This commit is contained in:
tibbi 2021-03-29 23:09:12 +02:00
parent 48885a8ac6
commit 80def97201

View file

@ -217,7 +217,10 @@ fun BaseSimpleActivity.toggleFileVisibility(oldPath: String, hide: Boolean, call
val newPath = "$path/$filename" val newPath = "$path/$filename"
renameFile(oldPath, newPath) { renameFile(oldPath, newPath) {
runOnUiThread {
callback?.invoke(newPath) callback?.invoke(newPath)
}
ensureBackgroundThread { ensureBackgroundThread {
updateDBMediaPath(oldPath, newPath) updateDBMediaPath(oldPath, newPath)
} }