commit | 9b5257c9c99c4cb541d8e8e78fb04f008b1a9091 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Thu Dec 18 15:04:25 2014 -0800 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Thu Dec 18 16:42:59 2014 -0800 |
tree | 8bd26f0d1a68d38e3373b0f10e4f200e8939205d | |
parent | 296aa925171b27a87b427575a9a462dc8a8620b2 [diff] |
MediaSessionLegacyHelper uses global Application context MediaSessionLegacyHelper used a Context passed by an application which can cause a leak of Activity instances. Use the global Application context instead. Also prevent crash if a null Context is supplied (method not documented as requesting a non-null Context). Bug 18767503 Change-Id: I8281047d0af233a323f3fc11ababedff848829ec