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
parent 45769c3f0c
commit e752dcc4a9

View File

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