-
Notifications
You must be signed in to change notification settings - Fork 0
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
Reset Make Filter #55
Conversation
* @param filterClass The class of filter to reset. | ||
*/ | ||
public void onFilterReset(Class<?> filterClass) { | ||
for (Filter filter : appliedFilters) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we could just call something along the lines of appliedFilters.remove(filterinstance) no? Because appliedFilters is a Set not a List. See corresponding comment for what we would pass at the call location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, below line 99 I believe we should have applyFilters(); being called
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my response about passing this
to the callback.
Doing a simple .remove
could be possible if we store the MakeFilter
in the MakeFilterFragment
as an attribute and then pass that MakeFilter
to the callback
*/ | ||
@Override | ||
public void resetFilter() { | ||
filterCallback.onFilterReset(MakeFilter.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filterCallback.onFilterReset(this);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
here is a MakeFilterFragment
and not a MakeFilter
* Working Espresso test for Add Item Uses two utility functions: 1. Sets up MainActivity with a test user 2. Added a 'waitForView' method to allow waiitng for UI to load --------- Co-authored-by: ldbonkowski <lbonkows@ualberta.ca> Co-authored-by: ldbonkowski <77549591+ldbonkowski@users.noreply.github.com>
* Delete Item button * PR changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, once other comments are resolved should be good to go
@ldbonkowski @owencooke PR is updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Describe your changes
This PR accomplishes the following:
Issue ticket number and link
This PR addresses: #52
Checklist before requesting a review
Screenshots (if applicable)