Updated on 2026-08-14
This commit is contained in:
parent
7355e24baa
commit
d0c4d92a8c
12 changed files with 346 additions and 0 deletions
|
|
@ -15,6 +15,10 @@ fun postBackground(ms: Long = 0, func: Runnable) {
|
|||
if (ms == 0L) backgroundHandler.post { func.run() } else backgroundHandler.postDelayed(func, ms)
|
||||
}
|
||||
|
||||
fun postUiDelayBg(ms: Long, func: Runnable) {
|
||||
backgroundHandler.postDelayed({ uiHandler.post(func) }, ms)
|
||||
}
|
||||
|
||||
fun post(ms: Long = 0, func: Runnable) {
|
||||
if (ms == 0L) {
|
||||
func.run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue