fix concurrent headset and HDMI connection
Fix a bug in WiredAccessoryManager causing an HDMI disconnection to be signaled to AudioService when a headset is connected. Bug 7313250. Change-Id: I7c6446104c55f9a4fc146abe7020df45ad6ba5e7
This commit is contained in:
@@ -152,7 +152,7 @@ final class WiredAccessoryManager implements WiredAccessoryCallbacks {
|
||||
break;
|
||||
}
|
||||
|
||||
updateLocked(NAME_H2W, headset);
|
||||
updateLocked(NAME_H2W, (mHeadsetState & ~(BIT_HEADSET | BIT_HEADSET_NO_MIC)) | headset);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user