pawegio / KAndroid

Kotlin library for Android
Apache License 2.0
896 stars 81 forks source link

Change request: making runOnUiThread method conststent with the Android API method #30

Closed jakubvimn closed 7 years ago

jakubvimn commented 7 years ago

The API method https://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) doesn't use Handler when the calling thread is UI, whereas the method runOnUiThread from here https://github.com/pawegio/KAndroid/blob/master/kandroid/src/main/kotlin/com/pawegio/kandroid/KThread.kt always uses Handler.

I think that the inconsistency between these 2 methods may be confusing.

pawegio commented 7 years ago

Good catch, I'll fix it shortly.