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

Commit 3a47fbc9 authored by Daniel Lehmann's avatar Daniel Lehmann Committed by Android Git Automerger
Browse files

am 0bdc4546: Merge "Fix for "Next" instead of Search showing up the first time" into jb-dev

* commit '0bdc4546':
  Fix for "Next" instead of Search showing up the first time
parents e4b157db 0bdc4546
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -290,12 +290,15 @@ public class ActionBarAdapter implements OnQueryTextListener, OnCloseListener {
    }

    private void update() {
        boolean isIconifiedChanging = mSearchView.isIconified() == mSearchMode;
        if (mSearchMode) {
            setFocusOnSearchView();
            // Since we have the {@link SearchView} in a custom action bar, we must manually handle
            // expanding the {@link SearchView} when a search is initiated. Note that a side effect
            // of this method is that the {@link SearchView} query text is set to empty string.
            if (isIconifiedChanging) {
                mSearchView.onActionViewExpanded();
            }
            if (mActionBar.getNavigationMode() != ActionBar.NAVIGATION_MODE_STANDARD) {
                mActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);
            }
@@ -320,7 +323,9 @@ public class ActionBarAdapter implements OnQueryTextListener, OnCloseListener {
            mActionBar.setTitle(null);
            // Since we have the {@link SearchView} in a custom action bar, we must manually handle
            // collapsing the {@link SearchView} when search mode is exited.
            if (isIconifiedChanging) {
                mSearchView.onActionViewCollapsed();
            }
            if (mListener != null) {
                mListener.onAction(Action.STOP_SEARCH_MODE);
                mListener.onSelectedTabChanged();