daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
Top