Android: Fix device volume not working (#663)
This commit is contained in:
@@ -152,6 +152,10 @@ public class GameActivity extends BaseActivity implements EmulatorCallback, Sens
|
||||
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||
if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_UP || event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_DOWN) {
|
||||
return super.dispatchKeyEvent(event);
|
||||
}
|
||||
|
||||
if ((!drawerFragment.isOpened()) && InputHandler.processKeyEvent(event)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user