Skip to content

feat: Add search edit text in SearchResultFragment #1982

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
Jun 20, 2019
Merged

feat: Add search edit text in SearchResultFragment #1982

merged 1 commit into from
Jun 20, 2019

Conversation

anhanh11001
Copy link
Contributor

Fixes: #1963

Screenshots for the change:
ezgif-4-ee5f51ca5f10

@auto-label auto-label bot added the feature label Jun 19, 2019
@anhanh11001 anhanh11001 requested a review from liveHarshit June 19, 2019 18:52
@@ -84,6 +92,9 @@ class SearchResultsFragment : Fragment(), CompoundButton.OnCheckedChangeListener
setStartPostponedEnterTransition()
}

rootView.searchText.setText(safeArgs.query)
rootView.clearSearchText.visibility = if (rootView.searchText.text.isNullOrBlank()) View.GONE else View.VISIBLE
Copy link
Member

Choose a reason for hiding this comment

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

isVisible can be used.

@nikit19 nikit19 merged commit 2bd38ea into fossasia:development Jun 20, 2019
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.

Add search query in SearchResultFragment
3 participants