remove the stopService() per review (which might unnecessarily
stop the playback when unsupported media buttons are pressed.)
This commit is contained in:
parent
e94e95e844
commit
24915785eb
@ -468,7 +468,8 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
|||||||
Log.d(TAG, "Received media button event");
|
Log.d(TAG, "Received media button event");
|
||||||
boolean handled = handleKeycode(keycode, true);
|
boolean handled = handleKeycode(keycode, true);
|
||||||
if (!handled) {
|
if (!handled) {
|
||||||
serviceManager.stopService(); // TODO: [2716]-RemoveOptional why is it added in the first place in v1.7.0?
|
// Just silently ignores unsupported keycode. Whether the service will
|
||||||
|
// continue to run is solely dependent on whether it is playing some media.
|
||||||
return Service.START_NOT_STICKY;
|
return Service.START_NOT_STICKY;
|
||||||
}
|
}
|
||||||
} else if (!flavorHelper.castDisconnect(castDisconnect) && playable != null) {
|
} else if (!flavorHelper.castDisconnect(castDisconnect) && playable != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user