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

@@ -691,6 +691,7 @@ public class ManageApplications extends InstrumentedFragment
mSearchView = (SearchView) searchMenuItem.getActionView();
mSearchView.setQueryHint(getText(R.string.search_settings));
mSearchView.setOnQueryTextListener(this);
mSearchView.setMaxWidth(Integer.MAX_VALUE);
if (mExpandSearch) {
searchMenuItem.expandActionView();
}