mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
[Catalog] Fix the wrong use of FragmentManager in TabsControllableDemoFragment
Resolves https://github.com/material-components/material-components-android/issues/1553 Resolves https://github.com/material-components/material-components-android/pull/1554 GIT_ORIGIN_REV_ID=4c7c1ab154892c665b4a67215a88e781da218ab6 PiperOrigin-RevId: 324207016
This commit is contained in:
parent
64b3387cb2
commit
e940c09fcf
@ -170,7 +170,7 @@ public class TabsControllableDemoFragment extends DemoFragment {
|
||||
}
|
||||
|
||||
private void setupViewPager() {
|
||||
pager.setAdapter(new TabsPagerAdapter(getFragmentManager(), getContext(), TAB_COUNT));
|
||||
pager.setAdapter(new TabsPagerAdapter(getChildFragmentManager(), getContext(), TAB_COUNT));
|
||||
for (TabLayout tabLayout : tabLayouts) {
|
||||
tabLayout.setupWithViewPager(pager);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user