You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can put it in any class, the Presenter would be a fine option.
You just have to make sure to call groupLifecycleManager.subscribe(presenter) so that the manager knows where to look for the @AutoResubscribe annotations and observers.
A pattern we use is to pass a manager to a helper class via its constructor, and then inside the class's constructor we save the manager to a field and do groupLifecycleManager.subscribe(this).
Does the
ResubscriptionObserver
with@AutoResubscribe
have to be inside the activity or can I put it somewhere else like into thePresenter
?I am injecting the
GroupLifecycleManager
into the presenter to use it and of course calling the life cycle methods inside the activity.The text was updated successfully, but these errors were encountered: