Always navigate to HomeFragment
This commit is contained in:
parent
6fdb62c538
commit
ff3dc4e977
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user