fix event handling in TimelineFragment (#2143)
This commit is contained in:
parent
9594e79f41
commit
bd670a01c3
|
@ -381,7 +381,7 @@ class TimelineFragment : SFragment(), OnRefreshListener, StatusActionListener, I
|
||||||
if (!eventRegistered) {
|
if (!eventRegistered) {
|
||||||
eventHub.events
|
eventHub.events
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.autoDispose(from(this))
|
.autoDispose(from(this, Lifecycle.Event.ON_DESTROY))
|
||||||
.subscribe { event: Event? ->
|
.subscribe { event: Event? ->
|
||||||
when (event) {
|
when (event) {
|
||||||
is FavoriteEvent -> handleFavEvent(event)
|
is FavoriteEvent -> handleFavEvent(event)
|
||||||
|
|
Loading…
Reference in New Issue