mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
Restore display tab on changing theme
This commit is contained in:
@@ -61,6 +61,10 @@ public class FragmentOptions extends FragmentBase {
|
||||
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
||||
TabLayout tabLayout = view.findViewById(R.id.tab_layout);
|
||||
tabLayout.setupWithViewPager(pager);
|
||||
|
||||
String tab = getActivity().getIntent().getStringExtra("tab");
|
||||
if ("display".equals(tab))
|
||||
pager.setCurrentItem(4);
|
||||
}
|
||||
|
||||
private class PagerAdapter extends FragmentStatePagerAdapter {
|
||||
|
||||
Reference in New Issue
Block a user