Merge branch 'master' of github.com:kabouzeid/Phonograph
This commit is contained in:
commit
e17196bdf4
1 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ public class MediaButtonIntentReceiver extends BroadcastReceiver {
|
|||
|
||||
// The service may or may not be running, but we need to send it
|
||||
// a command.
|
||||
if (keycode == KeyEvent.KEYCODE_HEADSETHOOK) {
|
||||
if (keycode == KeyEvent.KEYCODE_HEADSETHOOK || keycode == KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE) {
|
||||
if (eventTime - mLastClickTime >= DOUBLE_CLICK) {
|
||||
mClickCounter = 0;
|
||||
}
|
||||
|
|
@ -198,4 +198,4 @@ public class MediaButtonIntentReceiver extends BroadcastReceiver {
|
|||
mWakeLock = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue