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