HDMICEC: Keep device name empty when OSD name is not set

This is an update to have a consistent behaviour introduced by
ag/9557452.

Bug: 246903679
Test: atest com.android.server.hdmi
Change-Id: If05c8aab24dc83cb342e07a3468aebb4048d0925
This commit is contained in:
Paul Colta
2023-05-08 10:58:31 +02:00
committed by Paul Colța
parent f636d7c542
commit 4015301970

View File

@@ -172,7 +172,7 @@ final class NewDeviceAction extends HdmiCecFeatureAction {
return;
}
if (mDisplayName == null) {
mDisplayName = HdmiUtils.getDefaultDeviceName(mDeviceLogicalAddress);
mDisplayName = "";
}
HdmiDeviceInfo deviceInfo = HdmiDeviceInfo.cecDeviceBuilder()
.setLogicalAddress(mDeviceLogicalAddress)