summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2020-12-10 10:09:17 -0500
committerJoel Fischer <joeljfischer@gmail.com>2020-12-10 10:09:17 -0500
commit7ace673ba4fc03a43bd54b3b1a1974a3183beda8 (patch)
tree04efbdebf255f4e06784ab16945be93f4b7baa82
parenteaa16dea8baec9e1dfddaa717465639d19283b10 (diff)
downloadsdl_ios-7ace673ba4fc03a43bd54b3b1a1974a3183beda8.tar.gz
-rw-r--r--SmartDeviceLink/private/SDLSoftButtonReplaceOperation.m1
-rw-r--r--SmartDeviceLink/private/SDLSoftButtonTransitionOperation.m1
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];