Merge "Fix unit test failure"

This commit is contained in:
TreeHugger Robot
2020-10-29 13:43:03 +00:00
committed by Android (Google) Code Review

View File

@@ -246,6 +246,10 @@ abstract class HdmiCecLocalDeviceSource extends HdmiCecLocalDevice {
// Indicates if current device is the active source or not
@ServiceThreadOnly
protected boolean isActiveSource() {
if (getDeviceInfo() == null) {
return false;
}
return getActiveSource().equals(getDeviceInfo().getLogicalAddress(),
getDeviceInfo().getPhysicalAddress());
}