mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 882715 - Allow fragments to handle back button (r=bnicholson)
* * * more
This commit is contained in:
parent
606501ec96
commit
b81bf43011
@ -540,6 +540,11 @@ abstract public class BrowserApp extends GeckoApp
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if (getSupportFragmentManager().getBackStackEntryCount() > 0) {
|
||||
super.onBackPressed();
|
||||
return;
|
||||
}
|
||||
|
||||
if (dismissEditingMode()) {
|
||||
return;
|
||||
}
|
||||
|
@ -2235,6 +2235,11 @@ abstract public class GeckoApp
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
if (getSupportFragmentManager().getBackStackEntryCount() > 0) {
|
||||
super.onBackPressed();
|
||||
return;
|
||||
}
|
||||
|
||||
if (autoHideTabs()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user