summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2018-04-26 15:16:43 -0400
committerJoel Fischer <joeljfischer@gmail.com>2018-04-26 15:16:43 -0400
commit71df2c33ffef83718217bb5a0a78d22017cfeb04 (patch)
treefb84e321f6563c6c6f3b9863f1bfc2108b9b8b01
parent349615724e6c0313426b715c04f88d3aebc29b2b (diff)
downloadsdl_ios-71df2c33ffef83718217bb5a0a78d22017cfeb04.tar.gz
Fixed submenus not allowed to be the first item
-rw-r--r--SmartDeviceLink/SDLMenuManager.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLMenuManager.m b/SmartDeviceLink/SDLMenuManager.m
index 24bdf0025..59d339969 100644
--- a/SmartDeviceLink/SDLMenuManager.m
+++ b/SmartDeviceLink/SDLMenuManager.m
@@ -58,7 +58,7 @@ NS_ASSUME_NONNULL_BEGIN
@end
UInt32 const ParentIdNotFound = UINT32_MAX;
-UInt32 const MenuCellIdMin = 0;
+UInt32 const MenuCellIdMin = 1;
@implementation SDLMenuManager
@@ -219,7 +219,7 @@ UInt32 const MenuCellIdMin = 0;
}
// Set the ids
- self.lastMenuId = 0;
+ self.lastMenuId = MenuCellIdMin;
[self sdl_updateIdsOnMenuCells:menuCells parentId:ParentIdNotFound];
_oldMenuCells = _menuCells;