am 9aa5cb76: am 69fd01d3: Merge "MediaSessionLegacyHelper uses global Application context" into lmp-mr1-dev
* commit '9aa5cb76f3b0486afcd9b3ff445d8d082793f2b5': MediaSessionLegacyHelper uses global Application context
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user