Commit e06b1550 by olly Committed by bachinger

MediaSessionService: Add missing addSession call

PiperOrigin-RevId: 420285295
parent 3d8b1c99
......@@ -357,9 +357,10 @@ public abstract class MediaSessionService extends Service {
if (session == null) {
ControllerInfo controllerInfo = ControllerInfo.createLegacyControllerInfo();
session = onGetSession(controllerInfo);
}
if (session == null) {
return START_STICKY;
if (session == null) {
return START_STICKY;
}
addSession(session);
}
KeyEvent keyEvent = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
if (keyEvent != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment