Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f8e5923 authored by Mike LeBeau's avatar Mike LeBeau
Browse files

Move to a single dropdown background for the search dialog. This one

is full-screen width but has rounded corners on the bottom so it doesn't
look crappy if the list is not full-screen height. This was already
being used for in-app search, so I just got rid of the old global search
background and use the in-app one for everything.

By removing the lines in SearchDialog, I'm causing it to rely on the
value specified for the dropdown background in
frameworks/base/core/res/res/layout/search_bar.xml.
parent a2a60a21
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -560,12 +560,8 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS

        if (mGlobalSearchMode) {
            mSearchAutoComplete.setDropDownAlwaysVisible(true);  // fill space until results come in
            mSearchAutoComplete.setDropDownBackgroundResource(
                    com.android.internal.R.drawable.search_dropdown_background);
        } else {
            mSearchAutoComplete.setDropDownAlwaysVisible(false);
            mSearchAutoComplete.setDropDownBackgroundResource(
                    com.android.internal.R.drawable.search_dropdown_background_apps);
        }

        // attach the suggestions adapter, if suggestions are available
+2.76 KiB (2.99 KiB)
Loading image diff...
−2.99 KiB
Loading image diff...