Gabor Varadi
1 min readAug 27, 2019

--

Create the EventEmitter on the UI thread, emit the event on the UI thread. Technically in LiveData this is what postValue does — posts to the UI thread using a Handler before calling setValue, but I didn’t want a hard internal reference to android.os.Handler because it makes testability trickier (which is why AAC has the InstantTaskExecutorRule).

--

--

Gabor Varadi
Gabor Varadi

Written by Gabor Varadi

Android dev. Zhuinden, or EpicPandaForce @ SO. Extension function fan #Kotlin, dislikes multiple Activities/Fragment backstack.

No responses yet