Updated on 2026-08-14

This commit is contained in:
Tangem 2022-10-17 19:57:07 +05:00
parent 7355e24baa
commit d0c4d92a8c
12 changed files with 346 additions and 0 deletions

View file

@ -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()