mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-12 17:41:54 +02:00
adding a threading crashfix
This commit is contained in:
parent
48885a8ac6
commit
80def97201
@ -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) {
|
||||||
callback?.invoke(newPath)
|
runOnUiThread {
|
||||||
|
callback?.invoke(newPath)
|
||||||
|
}
|
||||||
|
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
updateDBMediaPath(oldPath, newPath)
|
updateDBMediaPath(oldPath, newPath)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user