This commit is contained in:
Milos Kozak 2020-03-30 10:13:26 +02:00
parent 23946f6c2a
commit caae6ab078

View file

@ -39,7 +39,7 @@ object OKDialog {
} }
fun runOnUiThread(theRunnable: Runnable?) { fun runOnUiThread(theRunnable: Runnable?) {
@Suppress("DEPRECATION" @Suppress("DEPRECATION")
val mainHandler = Handler(MainApp.instance().applicationContext.mainLooper) val mainHandler = Handler(MainApp.instance().applicationContext.mainLooper)
theRunnable?.let { mainHandler.post(it) } theRunnable?.let { mainHandler.post(it) }
} }