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
Родитель 946119ba1a
Коммит 62fec276ce
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -422,6 +422,17 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
GeckoAppShell.unregisterGeckoEventListener("SearchEngines:Data", this); 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 { private class ContextMenuSubject {
public int id; public int id;
public String url; public String url;