Lines Matching refs:fragment

124      * The main fragment displaying the user's favorites and frequent contacts
223 * Listener used to send search queries to the phone search fragment.
292 // Add the favorites fragment, and the dialpad fragment, but only if savedInstanceState
293 // is null. Otherwise the fragment manager takes care of recreating these fragments.
357 public void onAttachFragment(Fragment fragment) {
358 if (fragment instanceof DialpadFragment) {
359 mDialpadFragment = (DialpadFragment) fragment;
363 } else if (fragment instanceof SmartDialSearchFragment) {
364 mSmartDialSearchFragment = (SmartDialSearchFragment) fragment;
367 } else if (fragment instanceof SearchFragment) {
368 mRegularSearchFragment = (RegularSearchFragment) fragment;
371 } else if (fragment instanceof PhoneFavoriteFragment) {
372 mPhoneFavoriteFragment = (PhoneFavoriteFragment) fragment;
774 * Nexus S). Supporting it is a little more tricky because of the dialpad fragment might
812 * Shows the search fragment
816 // Weird race condition where fragment is doing work after the activity is destroyed
829 SearchFragment fragment;
847 fragment = (SearchFragment) getFragmentManager().findFragmentByTag(tag);
848 if (fragment == null) {
850 fragment = new SmartDialSearchFragment();
852 fragment = new RegularSearchFragment();
855 transaction.replace(R.id.dialtacts_frame, fragment, tag);
857 fragment.setQueryString(query, false);
862 * Hides the search fragment
869 // Go all the way back to the favorites fragment, regardless of how many times we
910 // This callback can happen if the dialpad fragment is recreated because of
912 // that would bring the user back to the search fragment regardless of the
914 // fragment manager correctly figure out whatever fragment was last displayed.