-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset screen manager after disconnects #956
Conversation
* added `stop` methods to the screen manager helpers to reset their stored properties on disconnection * Includes `screenManager`, `menuManager`, `softButtonManager`, `textAndGraphicsManager`, `voiceCommandManager` Signed-off-by: NicoleYarroch <[email protected]>
Signed-off-by: NicoleYarroch <[email protected]>
Signed-off-by: NicoleYarroch <[email protected]>
Signed-off-by: NicoleYarroch <[email protected]>
Signed-off-by: NicoleYarroch <[email protected]>
Signed-off-by: NicoleYarroch <[email protected]>
Signed-off-by: NicoleYarroch <[email protected]>
Signed-off-by: NicoleYarroch <[email protected]>
@@ -52,7 +52,7 @@ A show describing the current text and images on the screen (not soft buttons, e | |||
@property (strong, nonatomic, nullable) SDLDisplayCapabilities *displayCapabilities; | |||
@property (strong, nonatomic, nullable) SDLHMILevel currentLevel; | |||
|
|||
@property (strong, nonatomic) SDLArtwork *blankArtwork; | |||
@property (strong, nonatomic, nullable) SDLArtwork *blankArtwork; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be reset to nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in issue #953, I am getting a sdl_fileManager_fileDoesNotExistError
for the blank artwork when I try to use it on reconnects. Setting the blank artwork to nil
on disconnect was the only way I could fix the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, put a comment explaining that where it's reset.
@@ -589,7 +614,7 @@ - (BOOL)hasQueuedUpdate { | |||
return (_hasQueuedUpdate || _queuedUpdateHandler != nil); | |||
} | |||
|
|||
- (SDLArtwork *)blankArtwork { | |||
- (nullable SDLArtwork *)blankArtwork { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't reset to nil
That was meant to be a "request changes" |
Signed-off-by: NicoleYarroch <[email protected]>
Fixes #952, #953
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
Smoke tests
Summary
Fixes the
SDLScreenManager
not being reset when the app is reconnected to a head unit during a session. Menus, images, and buttons were not being set correctly on reconnects due the saved settings in theSDLScreenManager
's sub managers.Changelog
Enhancements
SDLTextAndGraphicManager
,SDLSoftButtonManager
,SDLMenuManager
, andSDLVoiceCommandManager
are now reset when the app disconnects from the head unit.Bug Fixes
nil
check for a menu cell's handler before it is called.Tasks Remaining
CLA