Extend SearchView width

To align SearchView x button with right border.

Bug: 254403811
Test: manual,
      Settings > Apps > See all apps > tap the search icon >
      input something and observe.
Change-Id: I5146c9ffb3c5177926e75f673497408092f6c065
This commit is contained in:
Arc Wang
2022-10-31 15:45:24 +08:00
committed by Jason Chiu
parent b0f38d29d2
commit 0243771025
3 changed files with 3 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ public abstract class BaseTimeZonePicker extends InstrumentedFragment
mSearchView.setQueryHint(getText(mSearchHintResId));
mSearchView.setOnQueryTextListener(this);
mSearchView.setMaxWidth(Integer.MAX_VALUE);
if (mDefaultExpandSearch) {
searchMenuItem.expandActionView();