Merge branch 'master' of github.com:kabouzeid/Phonograph

This commit is contained in:
Karim Abou Zeid 2017-12-24 13:41:32 +01:00
commit e17196bdf4

View file

@ -133,7 +133,7 @@ public class MediaButtonIntentReceiver extends BroadcastReceiver {
// The service may or may not be running, but we need to send it // The service may or may not be running, but we need to send it
// a command. // a command.
if (keycode == KeyEvent.KEYCODE_HEADSETHOOK) { if (keycode == KeyEvent.KEYCODE_HEADSETHOOK || keycode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE) {
if (eventTime - mLastClickTime >= DOUBLE_CLICK) { if (eventTime - mLastClickTime >= DOUBLE_CLICK) {
mClickCounter = 0; mClickCounter = 0;
} }
@ -198,4 +198,4 @@ public class MediaButtonIntentReceiver extends BroadcastReceiver {
mWakeLock = null; mWakeLock = null;
} }
} }
} }