diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-12-10 10:09:17 -0500 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-12-10 10:09:17 -0500 |
commit | 7ace673ba4fc03a43bd54b3b1a1974a3183beda8 (patch) | |
tree | 04efbdebf255f4e06784ab16945be93f4b7baa82 | |
parent | eaa16dea8baec9e1dfddaa717465639d19283b10 (diff) | |
download | sdl_ios-bugfix/issue-1778-softbutton-delay.tar.gz |
Add a commentbugfix/issue-1778-softbutton-delay
-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]; |