diff options
author | Frank Elias <francois.elias@livio.io> | 2020-12-02 14:40:40 -0500 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2020-12-02 14:40:40 -0500 |
commit | e0abfaa7d9d73dd96da75c31f92e3fc3e082a305 (patch) | |
tree | d5d044d84d70913f61d2156bbbf21ba686b5293f | |
parent | 57319abe20b3d5a8d0b4c8fa6bba417eb32a4a6c (diff) | |
download | sdl_ios-bugfix/issue-1793-SYNC-3.0-bug-with-button-event-notifications.tar.gz |
-rw-r--r-- | SmartDeviceLink/private/SDLSoftButtonManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/private/SDLSoftButtonManager.m b/SmartDeviceLink/private/SDLSoftButtonManager.m index c1082302e..d9b913593 100644 --- a/SmartDeviceLink/private/SDLSoftButtonManager.m +++ b/SmartDeviceLink/private/SDLSoftButtonManager.m @@ -123,12 +123,12 @@ NS_ASSUME_NONNULL_BEGIN } // Set the soft button ids. Check to make sure no two soft buttons have the same name, there aren't many soft buttons, so n^2 isn't going to be bad - int buttonId = 1; + NSUInteger buttonId = 1; for (NSUInteger i = 0; i < softButtonObjects.count; i++) { NSString *buttonName = softButtonObjects[i].name; // HAX: Due to a SYNC 3.0 bug (https://github.com/smartdevicelink/sdl_ios/issues/1793#issue-708356008), a `buttonId` can not be zero. As a workaround we will start the `buttonId`s from 1. if (buttonId == 1001) { - buttonId = 1 + buttonId = 1; } softButtonObjects[i].buttonId = buttonId; for (NSUInteger j = (i + 1); j < softButtonObjects.count; j++) { |