Skip to content

Commit

Permalink
Android: Fix device volume not working (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Dec 8, 2024
1 parent 8909e6e commit 67d4bd4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ protected void onPause() {

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

0 comments on commit 67d4bd4

Please sign in to comment.