Fixed
Status Update
Comments
il...@google.com <il...@google.com> #3
Looks like NavDirections' equals() has
if (!super.equals(object)) {
return false;
}
Which causes two NavDirections objects to be consider not equal, even though all of their fields are equal (the same seems to apply to Args classes, FWIW). Since the individual objects returned by NavDirections and Args don't extend anything, it seems like these lines can be removed.
if (!super.equals(object)) {
return false;
}
Which causes two NavDirections objects to be consider not equal, even though all of their fields are equal (the same seems to apply to Args classes, FWIW). Since the individual objects returned by NavDirections and Args don't extend anything, it seems like these lines can be removed.
da...@google.com <da...@google.com>
il...@google.com <il...@google.com> #4
This is fixed and will be available in alpha05
Description
Version used: 1.0.0-alpha03
NavDirections should implement equals and hashCode so that it can more easily be used with Mockito.verify such as in code like:
onView(withText("cc")).perform(click())
verify(repoFragment.navController).navigate(
RepoFragmentDirections.showUser("cc").matcher()
)
It would look similar to