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

Commit 20e52c34 authored by Oliver Woodman's avatar Oliver Woodman Committed by Android Git Automerger
Browse files

am 9aa5cb76: am 69fd01d3: Merge "MediaSessionLegacyHelper uses global...

am 9aa5cb76: am 69fd01d3: Merge "MediaSessionLegacyHelper uses global Application context" into lmp-mr1-dev

* commit '9aa5cb76':
  MediaSessionLegacyHelper uses global Application context
parents 8af8f1f7 9aa5cb76
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;