Refactoring

This commit is contained in:
M66B 2021-10-31 17:32:02 +01:00
parent c1e4c591fe
commit 6622a9b2b6
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,6 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
getSupportFragmentManager().addOnBackStackChangedListener(this);
if (!Helper.isSupportedDevice() && Helper.isPlayStoreInstall()) { if (!Helper.isSupportedDevice() && Helper.isPlayStoreInstall()) {
setTheme(R.style.AppThemeBlueOrangeLight); setTheme(R.style.AppThemeBlueOrangeLight);
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
@ -304,6 +302,7 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportFragmentManager().addOnBackStackChangedListener(this);
FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
fragmentTransaction.replace(R.id.content_frame, new FragmentEula()).addToBackStack("eula"); fragmentTransaction.replace(R.id.content_frame, new FragmentEula()).addToBackStack("eula");