Lines Matching refs:mTabs
53 private final TabLayout mTabs; field in ProfileTabs
84 mTabs = tabLayoutContainer.findViewById(R.id.tabs); in ProfileTabs()
96 mTabs.removeAllTabs(); in ProfileTabs()
117 mTabs.addOnTabSelectedListener(mOnTabSelectedListener); in ProfileTabs()
126 if (mTabs.getSelectedTabPosition() == -1 in updateView()
130 mTabs.removeOnTabSelectedListener(mOnTabSelectedListener); in updateView()
131 mTabs.selectTab(mTabs.getTabAt(mUserIds.indexOf(currentRoot.userId))); in updateView()
132 mTabs.addOnTabSelectedListener(mOnTabSelectedListener); in updateView()
148 for (int i = 0; i < mTabs.getTabCount(); i++) { in updateView()
151 View tab = ((ViewGroup) mTabs.getChildAt(0)).getChildAt(i); in updateView()
181 mTabs.removeAllTabs(); in updateTabsIfNeeded()
209 mTabs.addTab(createTab(userIdToLabelMap.get(userId), userId), /* setSelected= */false); in addTabsPrivateSpaceEnabled()
216 mTabs.addTab(createTab( in addTabsPrivateSpaceDisabled()
219 mTabs.addTab(createTab( in addTabsPrivateSpaceDisabled()
246 if (mTabs.getTabCount() > 1 && mTabs.getSelectedTabPosition() >= 0) { in getSelectedUser()
247 return (UserId) mTabs.getTabAt(mTabs.getSelectedTabPosition()).getTag(); in getSelectedUser()
260 && mTabs.getTabCount() > 1 in shouldShow()
267 return mTabs.newTab().setText(text).setTag(userId); in createTab()
272 if (mTabs.getChildCount() > 0) { in setEnabled()
273 View view = mTabs.getChildAt(0); in setEnabled()
279 tabView.setAlpha((enabled || mTabs.getSelectedTabPosition() == i) ? 1f in setEnabled()