summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Elias <francois.elias@livio.io>2021-02-10 12:11:30 -0500
committerFrank Elias <francois.elias@livio.io>2021-02-10 12:11:30 -0500
commit1f9197cc68199279e11659d961fd549af59cedba (patch)
treef4262a76d7fe3350800b70c3954fdfe20c360774
parent00f486958d0b80a04d9694a3de903fa2733c3ae2 (diff)
downloadsdl_ios-1f9197cc68199279e11659d961fd549af59cedba.tar.gz
comments review
-rw-r--r--SmartDeviceLink/private/SDLMenuManager.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/SmartDeviceLink/private/SDLMenuManager.m b/SmartDeviceLink/private/SDLMenuManager.m
index 9184243dd..1a9a62403 100644
--- a/SmartDeviceLink/private/SDLMenuManager.m
+++ b/SmartDeviceLink/private/SDLMenuManager.m
@@ -567,8 +567,10 @@ UInt32 const MenuCellIdMin = 1;
SDLArtwork *secondaryArtwork = cell.secondaryArtwork;
if (artwork != nil && !artwork.isStaticIcon && ![self.fileManager hasUploadedFile:artwork]) {
return NO;
- } else if (secondaryArtwork != nil && !secondaryArtwork.isStaticIcon && ![self.fileManager hasUploadedFile:secondaryArtwork]) {
- return NO;
+ } else if ([self.windowCapability hasImageFieldOfName:SDLImageFieldNameMenuCommandSecondaryImage] || [self.windowCapability hasImageFieldOfName:SDLImageFieldNameMenuSubMenuSecondaryImage]) {
+ if (secondaryArtwork != nil && !secondaryArtwork.isStaticIcon && ![self.fileManager hasUploadedFile:secondaryArtwork]) {
+ return NO;
+ }
} else if (cell.subCells.count > 0) {
return [self sdl_shouldRPCsIncludeImages:cell.subCells];
}