Merge "Remove callback upon MediaSession#release" into udc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
80b79f2e3c
@@ -442,6 +442,7 @@ public final class MediaSession {
|
||||
* but it must be released if your activity or service is being destroyed.
|
||||
*/
|
||||
public void release() {
|
||||
setCallback(null);
|
||||
try {
|
||||
mBinder.destroySession();
|
||||
} catch (RemoteException e) {
|
||||
|
||||
Reference in New Issue
Block a user