mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 732104 - (Part 1) Make sure BACK always takes you up a folder level. r=mfinkle
This commit is contained in:
parent
0348682408
commit
dd669712ae
@ -422,6 +422,17 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
|
||||
GeckoAppShell.unregisterGeckoEventListener("SearchEngines:Data", this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
// Let mAwesomeTabs try to handle the back press, since we may be in a
|
||||
// bookmarks sub-folder.
|
||||
if (mAwesomeTabs.onBackPressed())
|
||||
return;
|
||||
|
||||
// Otherwise, just exit the awesome screen
|
||||
cancelAndFinish();
|
||||
}
|
||||
|
||||
private class ContextMenuSubject {
|
||||
public int id;
|
||||
public String url;
|
||||
|
Loading…
Reference in New Issue
Block a user