Bug 868052 - Show dynamic toolbar when hardware menu button is pressed (on all devices this time). r=lucasr,sriram

This commit is contained in:
Margaret Leibovic 2013-05-29 16:07:12 -07:00
Родитель 0a2c0872da
Коммит 8e368ddde3
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -408,8 +408,8 @@ abstract public class GeckoApp
@Override @Override
public boolean onKeyDown(int keyCode, KeyEvent event) { public boolean onKeyDown(int keyCode, KeyEvent event) {
// Custom Menu should be opened when hardware menu key is pressed. // Handle hardware menu key presses separately so that we can show a custom menu in some cases.
if (Build.VERSION.SDK_INT >= 11 && keyCode == KeyEvent.KEYCODE_MENU) { if (keyCode == KeyEvent.KEYCODE_MENU) {
openOptionsMenu(); openOptionsMenu();
return true; return true;
} }