mirror of
https://github.com/samsonjs/media.git
synced 2026-04-20 13:45:47 +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) {
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue