Skip to content

Commit ff2c6e9

Browse files
author
Julian Kast
committed
Fixed logic
1 parent d07884c commit ff2c6e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

base/src/main/java/com/smartdevicelink/managers/screen/TextAndGraphicUpdateOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ private boolean shouldUpdateSecondaryImage() {
574574
String currentScreenDataSecondaryGraphicName = (currentScreenData != null && currentScreenData.getSecondaryGraphic() != null) ? currentScreenData.getSecondaryGraphic().getValue() : null;
575575
String secondaryGraphicName = updatedState.getSecondaryGraphic() != null ? updatedState.getSecondaryGraphic().getName() : null;
576576
// Cannot detect if there is a secondary image below v5.0, so we'll just try to detect if the primary image is allowed and allow the secondary image if it is.
577-
if (internalInterface.get().getSdlMsgVersion().getMajorVersion() > 5) {
577+
if (internalInterface.get().getSdlMsgVersion().getMajorVersion() >= 5) {
578578
return templateSupportsSecondaryArtwork && !CompareUtils.areStringsEqual(currentScreenDataSecondaryGraphicName, secondaryGraphicName, true, true);
579579
} else {
580580
return templateSupportsImageField(ImageFieldName.graphic);

0 commit comments

Comments
 (0)