Closed flibbertigibbet closed 6 years ago
Although filters are now preserved on screen rotation, they are not preserved on back navigation. That might call for a separate issue.
Now that we have the ability to start a filterable activity with a filter already set, it would be good to carry the filter over when moving from events<->destinations or list<->map.
I imagine it would be pretty small to tack that onto this PR, but opening another issue to tackle it later would be fine too.
I don't think it will be that straightforward to manage back navigation if it's not working already with existing lifecycle events; it may require shared preferences storage. Created #81. See link to discussion on the issue.
I don't think it will be that straightforward to manage back navigation if it's not working already with existing lifecycle events;
Actually, back navigation is working fine! I meant when tapping the "map" icon it would be nice to carry the current filter into the map activity when we call startActivity
by setting the current filter on the intent.
Okay, back navigation preserves the filter, but up navigation does not. I think that should be fine. Created #81
Updated; this should be ready for another look.
Looks good! We should probably wait to merge this until #79 is merged.
I think applying #79 on top of this instead of the other way around will be easier, as it will need fix-ups for this either way, so I'd prefer to merge this first, then make a PR to fix up the merge conflicts on #79 afterwards.
Overview
Implements the grid of buttons on the home view. Loads a random representative image for each category into the category's grid square, or hides the category's grid square if nothing matches its filter. Opens place view with filter in place.
Also fixes filters being lost on screen rotation and implements scrolling of the home view carousel with the grid content.
Demo
Notes
Does not attempt to ensure the images picked are unique; in practice currently, duplicates seem to be fairly uncommon.
Implements filtering by database query, as the original filtering implementation relied on string searches outside the database.
Closes #15 Fixes #78 Fixes #29