Merge "Prevent NPE when registering a remote control client"

This commit is contained in:
Neel Parekh
2011-08-08 13:57:30 -07:00
committed by Android (Google) Code Review

View File

@@ -3127,7 +3127,7 @@ public class AudioService extends IAudioService.Stub {
return;
}
synchronized(mCurrentRcLock) {
if (!mCurrentRcClientRef.get().equals(rcse.mRcClientRef.get())) {
if (!rcse.mRcClientRef.get().equals(mCurrentRcClientRef.get())) {
// new RC client, assume every type of information shall be queried
mCurrentRcClientInfoFlags = RC_INFO_ALL;
}