mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
Fix improper back button navigation
This commit is contained in:
parent
4a612d1168
commit
0ad57e40d9
1 changed files with 3 additions and 3 deletions
|
|
@ -338,13 +338,13 @@ public class PojavLauncherActivity extends BaseLauncherActivity
|
|||
public void onBackPressed() {
|
||||
int count = getSupportFragmentManager().getBackStackEntryCount();
|
||||
|
||||
if (count == 0 && viewPager.getCurrentItem() == 3) {
|
||||
if(count > 0 && viewPager.getCurrentItem() == 3){
|
||||
getSupportFragmentManager().popBackStack();
|
||||
}else{
|
||||
super.onBackPressed();
|
||||
//additional code
|
||||
ExtraCore.removeExtraListener("back_preference", backPreferenceListener);
|
||||
finish();
|
||||
} else {
|
||||
getSupportFragmentManager().popBackStack();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue