Bug 732104 - (Part 1) Make sure BACK always takes you up a folder level. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-03-15 10:01:11 -07:00
parent 0348682408
commit dd669712ae

View File

@ -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;