Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes redundant listeners between a Fragment and an Activity #520

Open
wants to merge 1 commit into
base: dev-todo-mvvm-live
Choose a base branch
from

Conversation

igorgur
Copy link

@igorgur igorgur commented Mar 5, 2018

Seems like the code includes callbacks (*Navigator.java) which act as a middle man between the Fragments and Activities. That approach should be fine for other architectures and for the 'old' way that has been used. ViewModel should dispatch events to observers and that exactly implemented in the sample code, but the unused interfaces cause a confusion in readability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant