Bug 708626 - Pressing physical volume button dismisses keyboard, doesn't adjust ringer volume. r=blassey

This commit is contained in:
Alex Pakhotin 2011-12-16 13:19:48 -08:00
Родитель 1ce6634809
Коммит 30161e293b
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -306,7 +306,9 @@ public class AwesomeBar extends Activity implements GeckoEventListener {
keyCode == KeyEvent.KEYCODE_DPAD_LEFT ||
keyCode == KeyEvent.KEYCODE_DPAD_RIGHT ||
keyCode == KeyEvent.KEYCODE_DPAD_CENTER ||
keyCode == KeyEvent.KEYCODE_DEL) {
keyCode == KeyEvent.KEYCODE_DEL ||
keyCode == KeyEvent.KEYCODE_VOLUME_UP ||
keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
return super.onKeyDown(keyCode, event);
} else {
int selStart = -1;