Created
July 28, 2014 06:48
-
-
Save anonymous/93f11709c9c05b3c0b9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void navigateUp() { | |
if (getFragmentManager().getBackStackEntryCount() > 0) { | |
getFragmentManager().popBackStack(); | |
removeCurrentFragment(); | |
Toast.makeText(HomeScreen.this, "you pressed back if", | |
Toast.LENGTH_SHORT).show(); | |
} else { | |
super.onBackPressed(); | |
Toast.makeText(HomeScreen.this, | |
"" + getFragmentManager().getBackStackEntryCount(), | |
Toast.LENGTH_SHORT).show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment