Merge "Fix unit test failure"
This commit is contained in:
committed by
Android (Google) Code Review
commit
92414c8263
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user