Lines Matching refs:fragment

180      * Listener for after slide out animation completes on dialer fragment.
195 * Tracks whether onSaveInstanceState has been called. If true, no fragment transactions can
288 * Listener used to send search queries to the phone search fragment.
310 // Show search fragment only when the query string is changed to non-empty text.
313 // fragment for the first time.
439 // Add the favorites fragment but only if savedInstanceState is null. Otherwise the
440 // fragment manager is responsible for recreating it.
516 // will have been stashed in mVoiceSearchQuery since the search results fragment cannot be
597 public void onAttachFragment(Fragment fragment) {
598 if (fragment instanceof DialpadFragment) {
599 mDialpadFragment = (DialpadFragment) fragment;
605 } else if (fragment instanceof SmartDialSearchFragment) {
606 mSmartDialSearchFragment = (SmartDialSearchFragment) fragment;
611 } else if (fragment instanceof SearchFragment) {
612 mRegularSearchFragment = (RegularSearchFragment) fragment;
614 } else if (fragment instanceof ListsFragment) {
615 mListsFragment = (ListsFragment) fragment;
727 * Initiates a fragment transaction to show the dialpad fragment. Animations and other visual
728 * updates are handled by a callback which is invoked after the dialpad fragment is shown.
780 * Initiates animations and other visual updates to hide the dialpad. The fragment is hidden in
826 * Finishes hiding the dialpad fragment after any animations are completed.
838 SearchFragment fragment = null;
840 fragment = mSmartDialSearchFragment;
842 fragment = mRegularSearchFragment;
844 if (fragment != null && fragment.isVisible()) {
845 fragment.updatePosition(true /* animate */);
995 * Shows the search fragment
999 // Weird race condition where fragment is doing work after the activity is destroyed
1027 SearchFragment fragment = (SearchFragment) getFragmentManager().findFragmentByTag(tag);
1033 if (fragment == null) {
1035 fragment = new SmartDialSearchFragment();
1037 fragment = ObjectFactory.newRegularSearchFragment();
1038 fragment.setOnTouchListener(new View.OnTouchListener() {
1041 // Show the FAB when the user touches the lists fragment and the soft
1049 transaction.add(R.id.dialtacts_frame, fragment, tag);
1051 transaction.show(fragment);
1054 fragment.setHasOptionsMenu(false);
1055 fragment.setShowEmptyListForNullQuery(true);
1057 fragment.setQueryString(query, false /* delaySelection */);
1074 * Hides the search fragment
1090 // Restore the FAB for the lists fragment.
1110 // If the dialpad fragment wasn't previously visible, then send a screen view because
1180 // This callback can happen if the dialpad fragment is recreated because of
1182 // that would bring the user back to the search fragment regardless of the
1184 // fragment manager correctly figure out whatever fragment was last displayed.