hadilq/LiveEvent

Please add variant with check newValue and oldValue

JajaComp opened this issue · 2 comments

If oldValue == newValue then ignore this. I need it for ClickEvent for to avoid of double tap problem with navigation.

oldValue you can reset in onInactive method

Thank you @JajaComp for your contribution. I advise you to use RxJava or Coroutines to solve your distinction problem, then you can use my libraries https://github.com/hadilq/RxLifecycleHandler/ or https://github.com/hadilq/CoroutineLifecycleHandler/ to make your stream lifecycle aware.