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

Commit 2c10f2e6 authored by Jaewan Kim's avatar Jaewan Kim Committed by android-build-merger
Browse files

Merge "MediaSession2: Fix random NPE in MediaBrowser2Test" into pi-dev

am: aa79f03c

Change-Id: Id0752a1ddada27d43ff8da59b2ae0b96dd92d29c
parents e09bf4f7 aa79f03c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -173,10 +173,12 @@ public abstract class MediaSessionService2 extends Service {
    /**
     * Get instance of the {@link MediaSession2} that you've previously created with the
     * {@link #onCreateSession} for this service.
     * <p>
     * This may be {@code null} before the {@link #onCreate()} is finished.
     *
     * @return created session
     */
    public final MediaSession2 getSession() {
    public final @Nullable MediaSession2 getSession() {
        return mProvider.getSession_impl();
    }