Do not stop service on unknown media key
This commit is contained in:
parent
b5c63db0e9
commit
e5d72c90f6
|
@ -463,7 +463,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||
if (keycode != -1) {
|
||||
Log.d(TAG, "Received media button event");
|
||||
boolean handled = handleKeycode(keycode, true);
|
||||
if (!handled) {
|
||||
if (!handled && !stateManager.hasReceivedValidStartCommand()) {
|
||||
stateManager.stopService();
|
||||
return Service.START_NOT_STICKY;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue