From 6622a9b2b6e5da2e2248e9e2e866760730ef4d9c Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 31 Oct 2021 17:32:02 +0100 Subject: [PATCH] Refactoring --- app/src/main/java/eu/faircode/email/ActivityMain.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityMain.java b/app/src/main/java/eu/faircode/email/ActivityMain.java index 3cf7be79b4..6f00edeeee 100644 --- a/app/src/main/java/eu/faircode/email/ActivityMain.java +++ b/app/src/main/java/eu/faircode/email/ActivityMain.java @@ -42,8 +42,6 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack @Override protected void onCreate(Bundle savedInstanceState) { - getSupportFragmentManager().addOnBackStackChangedListener(this); - if (!Helper.isSupportedDevice() && Helper.isPlayStoreInstall()) { setTheme(R.style.AppThemeBlueOrangeLight); super.onCreate(savedInstanceState); @@ -304,6 +302,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack setContentView(R.layout.activity_main); getSupportActionBar().setDisplayHomeAsUpEnabled(true); + getSupportFragmentManager().addOnBackStackChangedListener(this); FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); fragmentTransaction.replace(R.id.content_frame, new FragmentEula()).addToBackStack("eula");