commit | 4cfe8b8204427781dc5a5dc4789d93aa0fa2d9a4 | [log] [tgz] |
---|---|---|
author | Arc Wang <arcwang@google.com> | Wed Nov 02 08:07:13 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 02 08:07:13 2022 +0000 |
tree | 67c6a76f66d8c099dd6dc5ac06d3a7b19418e26c | |
parent | 34471a7160240fd279e1d38b894d3de5c6b6423b [diff] | |
parent | 049deec9b5b826724d8b31fe7061229d6a95092f [diff] |
Merge "Extend SearchView width" into tm-qpr-dev am: 049deec9b5 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/20337665 Change-Id: I2f7807561257dc18be802f0acc90cce56ca71b98 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/settings/applications/manageapplications/ManageApplications.java b/src/com/android/settings/applications/manageapplications/ManageApplications.java index 5ee059e..6b032fb 100644 --- a/src/com/android/settings/applications/manageapplications/ManageApplications.java +++ b/src/com/android/settings/applications/manageapplications/ManageApplications.java
@@ -691,6 +691,7 @@ mSearchView = (SearchView) searchMenuItem.getActionView(); mSearchView.setQueryHint(getText(R.string.search_settings)); mSearchView.setOnQueryTextListener(this); + mSearchView.setMaxWidth(Integer.MAX_VALUE); if (mExpandSearch) { searchMenuItem.expandActionView(); }
diff --git a/src/com/android/settings/datetime/timezone/BaseTimeZonePicker.java b/src/com/android/settings/datetime/timezone/BaseTimeZonePicker.java index 6ce9f6f..abdfc88 100644 --- a/src/com/android/settings/datetime/timezone/BaseTimeZonePicker.java +++ b/src/com/android/settings/datetime/timezone/BaseTimeZonePicker.java
@@ -136,6 +136,7 @@ mSearchView.setQueryHint(getText(mSearchHintResId)); mSearchView.setOnQueryTextListener(this); + mSearchView.setMaxWidth(Integer.MAX_VALUE); if (mDefaultExpandSearch) { searchMenuItem.expandActionView();
diff --git a/src/com/android/settings/print/PrintServiceSettingsFragment.java b/src/com/android/settings/print/PrintServiceSettingsFragment.java index eb7ab80..39b5ab9 100644 --- a/src/com/android/settings/print/PrintServiceSettingsFragment.java +++ b/src/com/android/settings/print/PrintServiceSettingsFragment.java
@@ -368,6 +368,7 @@ MenuItem searchItem = menu.findItem(R.id.print_menu_item_search); if (mServiceEnabled && mPrintersAdapter.getUnfilteredCount() > 0) { mSearchView = (SearchView) searchItem.getActionView(); + mSearchView.setMaxWidth(Integer.MAX_VALUE); mSearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String query) {