Skip to content

Commit a97d392

Browse files
Mark DISPLAYS as auto subscribed when the SCM is created
1 parent 32ba001 commit a97d392

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

base/src/main/java/com/smartdevicelink/proxy/SystemCapabilityManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public SystemCapabilityManager(ISdl callback) {
8888
this.onSystemCapabilityListeners = new HashMap<>();
8989
this.cachedSystemCapabilities = new HashMap<>();
9090
this.systemCapabilitiesSubscriptionStatus = new HashMap<>();
91+
this.systemCapabilitiesSubscriptionStatus.put(SystemCapabilityType.DISPLAYS, true);
9192
this.shouldConvertDeprecatedDisplayCapabilities = true;
9293
this.currentHMILevel = HMILevel.HMI_NONE;
9394

@@ -323,7 +324,6 @@ public void onReceived(RPCMessage message) {
323324
// this notification can return only affected windows (hence not all windows)
324325
List<DisplayCapability> newCapabilities = (List<DisplayCapability>) capability;
325326
updateCachedDisplayCapabilityList(newCapabilities);
326-
systemCapabilitiesSubscriptionStatus.put(SystemCapabilityType.DISPLAYS, true);
327327
}
328328
}
329329
if (capability != null) {

0 commit comments

Comments
 (0)