Rename
This commit is contained in:
1 parent
b86d90021c
commit
6c0757c91b
972 files changed
+6885
-7321
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package io.legato.kazusa.utils
|
||||
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import androidx.lifecycle.MutableLiveData
|
||||
|
||||
private val mainHandler by lazy { Handler(Looper.getMainLooper()) }
|
||||
|
||||
fun <T> MutableLiveData<T>.sendValue(value: T) {
|
||||
mainHandler.post {
|
||||
this@sendValue.value = value
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user