mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Added legend to compose
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user