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

Commit 69fd01d3 authored by Oliver Woodman's avatar Oliver Woodman Committed by Android (Google) Code Review
Browse files

Merge "MediaSessionLegacyHelper uses global Application context" into lmp-mr1-dev

parents 7b42f399 9b5257c9
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -69,12 +69,9 @@ public class MediaSessionLegacyHelper {
    }

    public static MediaSessionLegacyHelper getHelper(Context context) {
        if (DEBUG) {
            Log.d(TAG, "Attempting to get helper with context " + context);
        }
        synchronized (sLock) {
            if (sInstance == null) {
                sInstance = new MediaSessionLegacyHelper(context);
                sInstance = new MediaSessionLegacyHelper(context.getApplicationContext());
            }
        }
        return sInstance;