mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
MediaSessionService: Add missing addSession call
PiperOrigin-RevId: 420285295
This commit is contained in:
parent
3d8b1c9904
commit
e06b15506c
1 changed files with 4 additions and 3 deletions
|
|
@ -357,9 +357,10 @@ public abstract class MediaSessionService extends Service {
|
||||||
if (session == null) {
|
if (session == null) {
|
||||||
ControllerInfo controllerInfo = ControllerInfo.createLegacyControllerInfo();
|
ControllerInfo controllerInfo = ControllerInfo.createLegacyControllerInfo();
|
||||||
session = onGetSession(controllerInfo);
|
session = onGetSession(controllerInfo);
|
||||||
}
|
if (session == null) {
|
||||||
if (session == null) {
|
return START_STICKY;
|
||||||
return START_STICKY;
|
}
|
||||||
|
addSession(session);
|
||||||
}
|
}
|
||||||
KeyEvent keyEvent = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
|
KeyEvent keyEvent = intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT);
|
||||||
if (keyEvent != null) {
|
if (keyEvent != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue