diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-05-20 16:26:39 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-05-20 16:26:39 -0400 |
commit | 4d2936f468ffa3c5d4f89c65e9f7c61e3b2158a5 (patch) | |
tree | 33febaa5939e0520802cb858d85757d267ab2c9b | |
parent | 980403c72928821c5460ee7df14d15446366a240 (diff) | |
download | sdl_ios-4d2936f468ffa3c5d4f89c65e9f7c61e3b2158a5.tar.gz |
Fix menu manager display capabilities never updating
-rw-r--r-- | SmartDeviceLink/SDLMenuManager.m | 4 | ||||
-rw-r--r-- | SmartDeviceLink/SDLScreenManager.m | 1 | ||||
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLTextAndGraphicManagerSpec.m | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLMenuManager.m b/SmartDeviceLink/SDLMenuManager.m index 29a6539ad..031a21e5b 100644 --- a/SmartDeviceLink/SDLMenuManager.m +++ b/SmartDeviceLink/SDLMenuManager.m @@ -104,6 +104,10 @@ UInt32 const MenuCellIdMin = 1; return self; } +- (void)start { + [self.systemCapabilityManager subscribeToCapabilityType:SDLSystemCapabilityTypeDisplays withObserver:self selector:@selector(sdl_displayCapabilityDidUpdate:)]; +} + - (void)stop { _lastMenuId = MenuCellIdMin; _menuCells = @[]; diff --git a/SmartDeviceLink/SDLScreenManager.m b/SmartDeviceLink/SDLScreenManager.m index fac9ca4c0..91c240662 100644 --- a/SmartDeviceLink/SDLScreenManager.m +++ b/SmartDeviceLink/SDLScreenManager.m @@ -52,6 +52,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)startWithCompletionHandler:(void (^)(NSError * _Nullable))handler { [self.textAndGraphicManager start]; [self.softButtonManager start]; + [self.menuManager start]; [self.choiceSetManager start]; handler(nil); diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLTextAndGraphicManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLTextAndGraphicManagerSpec.m index 3e00ffe37..5f4944315 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLTextAndGraphicManagerSpec.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLTextAndGraphicManagerSpec.m @@ -375,7 +375,7 @@ describe(@"text and graphic manager", ^{ testManager.windowCapability = [[SDLWindowCapability alloc] init]; }); - fit(@"should send nothing", ^{ + it(@"should send nothing", ^{ testManager.mediaTrackTextField = textMediaTrack; testManager.title = textTitle; testManager.textField1 = textLine1; |