dagger - How do I finish an Activity from within a mortar Presenter or a View? -
how finish activity within presenter or view in mortar sample app?
the majority of time want avoid doing this. in dire circumstances follow same pattern actionbarowner[0] class implements. create injectable class exposes activity#finish via interface.
item 3 in [1] related calling order inverted. (activity lifecycle methods presenters instead of presenters activity methods).
hope helps!
[1] mortar + flow third party libraries hooked activity lifecycle
Comments
Post a Comment