Android: Fix device volume not working

This commit is contained in:
Ishan09811 2024-12-04 17:04:36 +05:30 committed by GitHub
parent 28461a1d44
commit 4ad6dd09e1
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;
}