-
Notifications
You must be signed in to change notification settings - Fork 103
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
[SDL-0196] Support Static Icon in Screen Manager #1106
[SDL-0196] Support Static Icon in Screen Manager #1106
Conversation
928e9b5
to
e8fc233
Compare
There are two failing test cases in SDLPreloadChoicesOperationSpec |
@@ -293,7 +293,7 @@ - (void)sdl_uploadOtherStateImages { | |||
for (SDLSoftButtonObject *object in self.softButtonObjects) { | |||
for (SDLSoftButtonState *state in object.states) { | |||
if ([state.name isEqualToString:object.currentState.name]) { continue; } | |||
if (state.artwork != nil && ![self.fileManager hasUploadedFile:state.artwork]) { | |||
if (![self sdl_artworkNeedsUpload:object.currentState.artwork]) { | |||
[otherStatesToBeUploaded addObject:state.artwork]; |
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.
[otherStatesToBeUploaded addObject:state.artwork]; | |
[otherStatesToBeUploaded addObject:object.currentState.artwork]; |
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.
Otherwise the app crashes when inserting a nil
state.artwork
into the array.
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.
I think that's incorrect logic that will cause other state artwork to never get uploaded.
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.
All I know is that my app kept crashing at that point when I uploaded a soft button with a static icon image
The |
Maybe you should add static icons to the PICS in the example apps so we have an example of how to use static icons? |
…_support # Conflicts: # SmartDeviceLink/SDLChoiceSetManager.m # SmartDeviceLink/SDLSoftButtonManager.m # SmartDeviceLink/SDLTextAndGraphicManager.m
* Many fixes to artwork uploads
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.
There are 2 broken test cases. The Swift example app needs to be updated as well.
Fixes #1062
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
Unit tests and smoke tests
Summary
SDLArtwork
and screen manager updated to support static icons and theSDLStaticIconName
enum.Changelog
Enhancements
SDLArtwork
can now be created with a static icon. Such artworks can be passed to theSDLScreenManager
for use in various image slots such as soft buttons and choices.Bug Fixes
SetDisplayLayout
causingSDLScreenManager
to break.Tasks Remaining:
CLA