Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2134 from divyanshub024/fix-2133
Browse files Browse the repository at this point in the history
[IMPROVEMENT] Set searchView width to max in ChatRoomFragment
  • Loading branch information
philipbrito authored Mar 26, 2019
2 parents cf67aa2 + 1910fc8 commit eb0d25f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/chat/rocket/android/chatroom/ui/Menu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ private fun ChatRoomFragment.setupSearchMessageMenuItem(menu: Menu, context: Con

(searchItem.actionView as? SearchView)?.let {
// TODO: Check why we need to stylize the search text programmatically instead of by defining it in the styles.xml (ChatRoom.SearchView)
it.maxWidth = Integer.MAX_VALUE
stylizeSearchView(it, context)
setupSearchViewTextListener(it)
if (it.isIconified) {
Expand Down

0 comments on commit eb0d25f

Please sign in to comment.