Loading src/com/android/contacts/activities/ActionBarAdapter.java +7 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading @@ -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(); Loading Loading
src/com/android/contacts/activities/ActionBarAdapter.java +7 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading @@ -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(); Loading