Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e56ec0cb authored by Jin Seok Park's avatar Jin Seok Park Committed by Android (Google) Code Review
Browse files

Merge "Replace hidden API startForegroundServiceAsUser"

parents 933072bd 6d6535d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -221,8 +221,8 @@ final class MediaButtonReceiverHolder {
                        context.startActivityAsUser(mediaButtonIntent, userHandle);
                        break;
                    case COMPONENT_TYPE_SERVICE:
                        context.startForegroundServiceAsUser(mediaButtonIntent,
                                userHandle);
                        context.createContextAsUser(userHandle, 0).startForegroundService(
                                mediaButtonIntent);
                        break;
                    default:
                        // Legacy behavior for other cases.