diff options
author | yLeonid <YLokhmatov@luxoft.com> | 2019-09-30 00:55:06 +0300 |
---|---|---|
committer | yLeonid <YLokhmatov@luxoft.com> | 2019-09-30 00:55:06 +0300 |
commit | 89d623d801bdbf805104544dc3f107b0b24f1675 (patch) | |
tree | 199df5cc9405fffe4f0940221e9d622e33e703e3 | |
parent | bf0df21f5a970fb20ad42cea4ae42f608ea50007 (diff) | |
download | sdl_ios-89d623d801bdbf805104544dc3f107b0b24f1675.tar.gz |
issue_1386_manager_update_display_capability : fix code review comment:
https://github.com/smartdevicelink/sdl_ios/pull/1390#discussion_r325204343
-rw-r--r-- | SmartDeviceLink/SDLSoftButtonManager.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLink/SDLSoftButtonManager.m b/SmartDeviceLink/SDLSoftButtonManager.m index 6681d1735..53de9792a 100644 --- a/SmartDeviceLink/SDLSoftButtonManager.m +++ b/SmartDeviceLink/SDLSoftButtonManager.m @@ -27,6 +27,8 @@ #import "SDLSoftButtonTransitionOperation.h" #import "SDLSystemCapabilityManager.h" #import "SDLWindowCapability.h" +#import "SDLSystemCapability.h" +#import "SDLDisplayCapability.h" NS_ASSUME_NONNULL_BEGIN @@ -190,9 +192,7 @@ NS_ASSUME_NONNULL_BEGIN #pragma mark - RPC Responses - (void)sdl_displayCapabilityUpdate:(SDLSystemCapability *)systemCapability { - // we won't use the object in the parameter but the convenience method of the system capability manager - _windowCapability = _systemCapabilityManager.defaultMainWindowCapability; - + _windowCapability = systemCapability.displayCapabilities[0].windowCapabilities[0]; // Auto-send an updated Show to account for changes to the capabilities if (self.softButtonObjects.count > 0) { SDLSoftButtonReplaceOperation *op = [[SDLSoftButtonReplaceOperation alloc] initWithConnectionManager:self.connectionManager fileManager:self.fileManager capabilities:self.windowCapability.softButtonCapabilities.firstObject softButtonObjects:self.softButtonObjects mainField1:self.currentMainField1]; |