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

* commit '69fd01d3e6e8e94eafdb6d424f92a32ada93096d':
  MediaSessionLegacyHelper uses global Application context
This commit is contained in:
Oliver Woodman
2014-12-19 11:42:17 +00:00
committed by Android Git Automerger

View File

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