Merge "Cannot compare Binder references for RC display to unregister"
This commit is contained in:
committed by
Android (Google) Code Review
commit
aca6d629e2
@@ -703,7 +703,7 @@ public class RemoteControlClient
|
||||
|
||||
private void onUnplugDisplay(IRemoteControlDisplay rcd) {
|
||||
synchronized(mCacheLock) {
|
||||
if ((mRcDisplay != null) && (mRcDisplay.equals(rcd))) {
|
||||
if ((mRcDisplay != null) && (mRcDisplay.asBinder().equals(rcd.asBinder()))) {
|
||||
mRcDisplay = null;
|
||||
mArtworkExpectedWidth = ARTWORK_DEFAULT_SIZE;
|
||||
mArtworkExpectedHeight = ARTWORK_DEFAULT_SIZE;
|
||||
|
||||
Reference in New Issue
Block a user