Always navigate to HomeFragment

This commit is contained in:
MrLetsplay 2023-06-20 22:01:03 +02:00
parent 6fdb62c538
commit ff3dc4e977
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -101,7 +101,7 @@ public class MainActivity extends AppCompatActivity {
@Override @Override
public void onBackPressed() { public void onBackPressed() {
Log.i("AMOGUS", "navigateUp"); Log.i("AMOGUS", "navigateUp");
if(NavigationUtil.getCurrentFragment(this) instanceof DynamicFragment) { if(!(NavigationUtil.getCurrentFragment(this) instanceof HomeFragment)) {
NavigationUtil.navigate(this, HomeFragment.class, null); NavigationUtil.navigate(this, HomeFragment.class, null);
} }
} }