Closed k-kagurazaka closed 7 years ago
Thanks! WebNavigator
seems good.
I have a question! 🙋
Do you have any idea other Navigator
class for Activity/Dialog?
I have two plans:
Navigator
for each view, like InformationViewNavigator
.Pros.
Cons.
ViewNavigator
that will be used for all transition.Pros. and Cons. are reverse of plan 1.
Now I think plan 2 is better, what do you think about?
@k-kagurazaka Thanks! I also think 2 is better since this app doesn't have so many views 😃
@konifar Thanks for your quick reply.
I will try to implement ViewNavigator
.
I rewrite activity transition by injectable Navigator
.
Currently some Callback
interfaces exist yet, however we should apply MVVM pattern before removing these callbacks.
So I changed the focus of PR as changed title.
Would you like to review?
I just extract Navigator
from BaseActivity
😄
LGTM! :cool: Thanks for great Refactoring! I learned a lot from this
Issue
None
Overview (Required)
This is for suggestion, please close it if you are not a fun of this idea.
The goal of this PR is that remove all callbacks of
ViewModel
and uses injectableNavigator
s instead. Currently I completed following tasks:AppUtil
toWebNavigator
and make it injectable.WebNavigator
instead of callback.I want to get reviews before working remaining tasks, so please don't merge this PR now.