Android: Fix device volume not working (#663)

This commit is contained in:
Ishan09811 2024-12-08 17:09:31 +05:30 committed by GitHub
parent 8909e6e7ea
commit 67d4bd484a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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