Skip to content

Commit

Permalink
Use proper hint for Search when entering from Places. (#4472)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrant authored Feb 20, 2024
1 parent 718b5d3 commit a598aed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/org/wikipedia/search/SearchFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class SearchFragment : Fragment(), SearchResultsFragment.Callback, RecentSearche
binding.searchCabView.setOnCloseListener(searchCloseListener)
binding.searchCabView.setSearchHintTextColor(ResourceUtil.getThemedColor(requireContext(),
R.attr.secondary_color))
binding.searchCabView.queryHint = getString(if (invokeSource == InvokeSource.PLACES) R.string.places_search_hint else R.string.search_hint)

// remove focus line from search plate
val searchEditPlate = binding.searchCabView
Expand Down

0 comments on commit a598aed

Please sign in to comment.