diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-03-11 12:13:54 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-03-11 12:13:54 -0400 |
commit | a6afbd2dcdc11a7b6c433c33500abc0c414cec3f (patch) | |
tree | 588949b30349a16b41fa76f5009e3053a8ce2785 | |
parent | 0f6d87743610028cd5f71540c0cb23a6e18ff134 (diff) | |
parent | f4796302d97357bbc24fa50407dc7e1d0692a36e (diff) | |
download | sdl_ios-a6afbd2dcdc11a7b6c433c33500abc0c414cec3f.tar.gz |
Merge branch 'bugfix/issue-1536-empty-displaycapabilities-workaround' of https://github.com/smartdevicelink/sdl_ios into bugfix/issue-1536-empty-displaycapabilities-workaround
# Conflicts:
# SmartDeviceLink/SDLSoftButtonManager.m
-rw-r--r-- | SmartDeviceLink/SDLSoftButtonManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLSoftButtonManager.m b/SmartDeviceLink/SDLSoftButtonManager.m index f54e9d4bc..fc59a24f8 100644 --- a/SmartDeviceLink/SDLSoftButtonManager.m +++ b/SmartDeviceLink/SDLSoftButtonManager.m @@ -116,7 +116,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)setSoftButtonObjects:(NSArray<SDLSoftButtonObject *> *)softButtonObjects { // Only update if something changed. This prevents, for example, an empty array being reset if (_softButtonObjects == softButtonObjects) { - SDLLogD(@"Set soft button objects are equivalent to existing soft button objects, skipping..."); + SDLLogD(@"New soft button objects are equivalent to existing soft button objects, skipping..."); return; } @@ -139,7 +139,7 @@ NS_ASSUME_NONNULL_BEGIN _softButtonObjects = softButtonObjects; - // We assume that all soft button capabilities are the same, so we only need to send one + // We only need to pass the first `softButtonCapabilities` in the array due to the fact that all soft button capabilities are the same (i.e. there is no way to assign a `softButtonCapabilities` to a specific soft button). SDLSoftButtonReplaceOperation *op = [[SDLSoftButtonReplaceOperation alloc] initWithConnectionManager:self.connectionManager fileManager:self.fileManager capabilities:self.windowCapability.softButtonCapabilities.firstObject softButtonObjects:_softButtonObjects mainField1:self.currentMainField1]; if (self.isBatchingUpdates) { |