Added legend to compose

This commit is contained in:
M66B
2020-01-12 09:12:20 +01:00
parent 0416b2c97e
commit 6d4f858d01
3 changed files with 36 additions and 0 deletions

View File

@@ -72,6 +72,16 @@ public class FragmentLegend extends FragmentBase {
if (layout < 0) {
TabLayout tabLayout = view.findViewById(R.id.tab_layout);
tabLayout.setupWithViewPager(pager);
Bundle args = getArguments();
if (args != null) {
String tab = args.getString("tab");
if ("compose".equals(tab))
pager.setCurrentItem(3);
args.remove("tab");
setArguments(args);
}
}
}