зеркало из https://github.com/mozilla/pjs.git
Bug 732104 - (Part 1) Make sure BACK always takes you up a folder level. r=mfinkle
This commit is contained in:
Родитель
946119ba1a
Коммит
62fec276ce
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче