Allow search view to be full width of the screen in landscape.
Fixes #10299 Closes #10321
This commit is contained in:
parent
f3096cc24c
commit
76a0e5c851
2 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,7 @@ public class SearchToolbar extends LinearLayout {
|
|||
EditText searchText = searchView.findViewById(R.id.search_src_text);
|
||||
|
||||
searchView.setSubmitButtonEnabled(false);
|
||||
searchView.setMaxWidth(Integer.MAX_VALUE);
|
||||
|
||||
if (searchText != null) searchText.setHint(R.string.SearchToolbar_search);
|
||||
else searchView.setQueryHint(getResources().getString(R.string.SearchToolbar_search));
|
||||
|
|
|
@ -1098,6 +1098,8 @@ public class ConversationParentFragment extends Fragment
|
|||
}
|
||||
});
|
||||
|
||||
searchView.setMaxWidth(Integer.MAX_VALUE);
|
||||
|
||||
if (isSearchRequested) {
|
||||
if (searchViewItem.expandActionView()) {
|
||||
searchViewModel.onSearchOpened();
|
||||
|
|
Loading…
Add table
Reference in a new issue