mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-13 00:33:13 +01:00
Execute clearAllMessagesIfNeeded
callback on the main thread
This commit is contained in:
parent
fe0553650e
commit
30ba6dce5b
@ -1038,7 +1038,7 @@ fun Context.clearAllMessagesIfNeeded(callback: () -> Unit) {
|
||||
ensureBackgroundThread {
|
||||
messagesDB.deleteAll()
|
||||
config.wasDbCleared = true
|
||||
callback()
|
||||
Handler(Looper.getMainLooper()).post(callback)
|
||||
}
|
||||
} else {
|
||||
callback()
|
||||
|
Loading…
Reference in New Issue
Block a user