Skip to content

Removes redundant listeners between a Fragment and an Activity#520

Open
igorgur wants to merge 1 commit intoandroid:dev-todo-mvvm-livefrom
igorgur:todo-mvvm-live-redundant-listeners-removed
Open

Removes redundant listeners between a Fragment and an Activity#520
igorgur wants to merge 1 commit intoandroid:dev-todo-mvvm-livefrom
igorgur:todo-mvvm-live-redundant-listeners-removed

Conversation

@igorgur
Copy link
Copy Markdown

@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