Skip to content

fix: Make chip not checkable and search possible #1659

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

Merged
merged 1 commit into from
Apr 29, 2019
Merged

fix: Make chip not checkable and search possible #1659

merged 1 commit into from
Apr 29, 2019

Conversation

anhanh11001
Copy link
Contributor

Detail:

  • In FavoriteFragment, make chips not clickable
  • Make search possible by adding search type

Fixes: #1655

Screenshots for the change:

@auto-label auto-label bot added the fix label Apr 24, 2019
@@ -153,6 +153,7 @@ class FavoriteFragment : Fragment() {
private fun openSearchResult(time: String) {
SearchResultsFragmentArgs.Builder()
.setQuery("")
.setType("Anything")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why hardcoding the type there's no point of chips if you're doing this you should make them as they were supposed to work instead of making a dirty fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aggarwalpulkit596 I don't really get your point... So the problem is simply because the type in SearchResultFragment is set to null when being navigated from this, so results are not fetched. If I don't put the default type ("Anything") here, then sure I can put it in the SearchResultFragment, and that's pretty much the same

@anhanh11001
Copy link
Contributor Author

@liveHarshit please review

Detail:

In FavoriteFragment, make chips not clickable
Make search possible by adding search type

Fixes: #1655
@iamareebjamal iamareebjamal merged commit 98d2b5e into fossasia:development Apr 29, 2019
@anhanh11001 anhanh11001 deleted the 1655_chip_favorite_checkable branch June 20, 2019 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chip in FavoriteFragment is checkable and search results are not fetched
4 participants