Merge "MediaSessionLegacyHelper uses global Application context" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
69fd01d3e6
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user