Bug 882715 - Allow fragments to handle back button (r=bnicholson)

* * *
more
This commit is contained in:
Lucas Rocha 2013-07-08 23:05:27 +01:00
parent 606501ec96
commit b81bf43011
2 changed files with 10 additions and 0 deletions

View File

@ -540,6 +540,11 @@ abstract public class BrowserApp extends GeckoApp
@Override
public void onBackPressed() {
if (getSupportFragmentManager().getBackStackEntryCount() > 0) {
super.onBackPressed();
return;
}
if (dismissEditingMode()) {
return;
}

View File

@ -2235,6 +2235,11 @@ abstract public class GeckoApp
@Override
public void onBackPressed() {
if (getSupportFragmentManager().getBackStackEntryCount() > 0) {
super.onBackPressed();
return;
}
if (autoHideTabs()) {
return;
}