summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/private/SDLMenuManager.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLink/private/SDLMenuManager.m')
-rw-r--r--SmartDeviceLink/private/SDLMenuManager.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLMenuManager.m b/SmartDeviceLink/private/SDLMenuManager.m
index ae422345f..264bf94c1 100644
--- a/SmartDeviceLink/private/SDLMenuManager.m
+++ b/SmartDeviceLink/private/SDLMenuManager.m
@@ -227,6 +227,16 @@ NS_ASSUME_NONNULL_BEGIN
return NO;
}
+ // Check if a passed cell is a "re-created" cell without a cellID. If it is, then try to find the equivalent cell and use it instead
+ if (cell != nil && cell.cellId == UINT32_MAX) {
+ for (SDLMenuCell *headUnitCell in self.menuCells) {
+ if ([cell isEqual:headUnitCell]) {
+ cell = headUnitCell;
+ break;
+ }
+ }
+ }
+
// Create the operation
SDLMenuShowOperation *showMenuOp = [[SDLMenuShowOperation alloc] initWithConnectionManager:self.connectionManager toMenuCell:cell completionHandler:^(NSError * _Nullable error) {
if (error != nil) {