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
The PresenterManager class currently accepts a Bundle object passed via the savePresenter(BasePresenter<?, ?> presenter, Bundle outState) and the restorePresenter(Bundle savedInstanceState) to keep a reference of a presenter. This makes a dependency on the Android framework.
What about passing a unique key string from the Activity (or Fragment) that uses this presenter? This will remove the dependency on the Bundle class as well.
The
PresenterManager
class currently accepts aBundle
object passed via thesavePresenter(BasePresenter<?, ?> presenter, Bundle outState)
and therestorePresenter(Bundle savedInstanceState)
to keep a reference of a presenter. This makes a dependency on the Android framework.What about passing a unique key string from the
Activity
(orFragment
) that uses this presenter? This will remove the dependency on theBundle
class as well.For example,
savePresenter(BasePresenter<?, ?> presenter, String key)
restorePresenter(String key)
and in
Activity
'sonCreate()
method,The text was updated successfully, but these errors were encountered: