diff options
-rw-r--r-- | SmartDeviceLink/private/SDLSoftButtonReplaceOperation.m | 1 | ||||
-rw-r--r-- | SmartDeviceLink/private/SDLSoftButtonTransitionOperation.m | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/SmartDeviceLink/private/SDLSoftButtonReplaceOperation.m b/SmartDeviceLink/private/SDLSoftButtonReplaceOperation.m index 700fbe979..50d004745 100644 --- a/SmartDeviceLink/private/SDLSoftButtonReplaceOperation.m +++ b/SmartDeviceLink/private/SDLSoftButtonReplaceOperation.m @@ -174,6 +174,7 @@ NS_ASSUME_NONNULL_BEGIN [softButtons addObject:buttonObject.currentStateSoftButton]; } + // HAX: Work around a bug in Sync where not sending a main field when sending soft buttons will lock up the head unit for 10-15 seconds. SDLShow *show = [[SDLShow alloc] init]; show.mainField1 = self.mainField1 ?: @""; show.softButtons = [softButtons copy]; diff --git a/SmartDeviceLink/private/SDLSoftButtonTransitionOperation.m b/SmartDeviceLink/private/SDLSoftButtonTransitionOperation.m index fd520fbce..23265319f 100644 --- a/SmartDeviceLink/private/SDLSoftButtonTransitionOperation.m +++ b/SmartDeviceLink/private/SDLSoftButtonTransitionOperation.m @@ -50,6 +50,7 @@ NS_ASSUME_NONNULL_BEGIN } - (void)sdl_sendNewSoftButtons { + // HAX: Work around a bug in Sync where not sending a main field when sending soft buttons will lock up the head unit for 10-15 seconds. SDLShow *newShow = [[SDLShow alloc] init]; newShow.mainField1 = self.mainField1 ?: @""; newShow.softButtons = [self sdl_currentStateSoftButtonsForObjects:self.softButtons]; |