• Home
  • Raw
  • Download

Lines Matching refs:fragment

75         DeskClockFragment fragment = mFragmentCache.get(tab);  in getDeskClockFragment()  local
76 if (fragment != null) { in getDeskClockFragment()
77 return fragment; in getDeskClockFragment()
83 fragment = (DeskClockFragment) mFragmentManager.findFragmentByTag(tab.name()); in getDeskClockFragment()
84 if (fragment != null) { in getDeskClockFragment()
85 fragment.setFabContainer(mDeskClock); in getDeskClockFragment()
86 mFragmentCache.put(tab, fragment); in getDeskClockFragment()
87 return fragment; in getDeskClockFragment()
92 fragment = (DeskClockFragment) Fragment.instantiate(mDeskClock, fragmentClassName); in getDeskClockFragment()
93 fragment.setFabContainer(mDeskClock); in getDeskClockFragment()
94 mFragmentCache.put(tab, fragment); in getDeskClockFragment()
95 return fragment; in getDeskClockFragment()
113 Fragment fragment = mFragmentManager.findFragmentByTag(tab.name()); in instantiateItem() local
114 if (fragment != null) { in instantiateItem()
115 mCurrentTransaction.attach(fragment); in instantiateItem()
117 fragment = getDeskClockFragment(position); in instantiateItem()
118 mCurrentTransaction.add(container.getId(), fragment, tab.name()); in instantiateItem() local
121 if (fragment != mCurrentPrimaryItem) { in instantiateItem()
122 FragmentCompat.setMenuVisibility(fragment, false); in instantiateItem()
123 FragmentCompat.setUserVisibleHint(fragment, false); in instantiateItem()
126 return fragment; in instantiateItem()
134 final DeskClockFragment fragment = (DeskClockFragment) object; in destroyItem() local
135 fragment.setFabContainer(null); in destroyItem()
136 mCurrentTransaction.detach(fragment); in destroyItem()
141 final Fragment fragment = (Fragment) object; in setPrimaryItem() local
142 if (fragment != mCurrentPrimaryItem) { in setPrimaryItem()
147 if (fragment != null) { in setPrimaryItem()
148 FragmentCompat.setMenuVisibility(fragment, true); in setPrimaryItem()
149 FragmentCompat.setUserVisibleHint(fragment, true); in setPrimaryItem()
151 mCurrentPrimaryItem = fragment; in setPrimaryItem()