Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. private boolean isWakeKeyWhenKeyguardShowing(int keyCode) {
  2. switch (keyCode) {
  3. case KeyEvent.KEYCODE_VOLUME_UP:
  4. case KeyEvent.KEYCODE_VOLUME_DOWN:
  5. case KeyEvent.KEYCODE_MUTE:
  6. case KeyEvent.KEYCODE_HEADSETHOOK:
  7. case KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE:
  8. case KeyEvent.KEYCODE_MEDIA_STOP:
  9. case KeyEvent.KEYCODE_MEDIA_NEXT:
  10. case KeyEvent.KEYCODE_MEDIA_PREVIOUS:
  11. case KeyEvent.KEYCODE_MEDIA_REWIND:
  12. case KeyEvent.KEYCODE_MEDIA_FAST_FORWARD:
  13. case KeyEvent.KEYCODE_CAMERA:
  14. return false;
  15. }
  16. return true;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement