Skip to content

Commit

Permalink
Android: Fix device volume not working
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Dec 4, 2024
1 parent 28461a1 commit 4ad6dd0
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 4ad6dd0

Please sign in to comment.