Merge "Fix NullPointerException in System UI caused by remote volume change"

This commit is contained in:
Hyundo Moon
2017-02-06 01:32:25 +00:00
committed by Android (Google) Code Review

View File

@@ -155,10 +155,10 @@ public class MediaSessionService extends SystemService implements Monitor {
}
/**
* Tells the system UI that volume has changed on a remote session.
* Tells the system UI that volume has changed on an active remote session.
*/
public void notifyRemoteVolumeChanged(int flags, MediaSessionRecord session) {
if (mRvc == null) {
if (mRvc == null || !session.isActive()) {
return;
}
try {