-
Notifications
You must be signed in to change notification settings - Fork 131
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
1738 - Soft button manager image upload fix #1811
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SoftbuttonManager
if graphics are not supported on older systems
Codecov Report
@@ Coverage Diff @@
## develop #1811 +/- ##
=============================================
+ Coverage 54.02% 54.07% +0.04%
- Complexity 5522 5533 +11
=============================================
Files 562 562
Lines 25757 25809 +52
Branches 3382 3395 +13
=============================================
+ Hits 13916 13956 +40
- Misses 10577 10584 +7
- Partials 1264 1269 +5
|
joeljfischer
suggested changes
Jun 8, 2022
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.
A few small items
base/src/main/java/com/smartdevicelink/managers/screen/BaseSoftButtonManager.java
Outdated
Show resolved
Hide resolved
...android/src/androidTest/java/com/smartdevicelink/managers/screen/SoftButtonManagerTests.java
Outdated
Show resolved
Hide resolved
…n uploading graphic when no capability is retrieved
SoftbuttonManager
if graphics are not supported on older systems
joeygrover
requested changes
Jun 15, 2022
base/src/main/java/com/smartdevicelink/managers/screen/SoftButtonReplaceOperation.java
Outdated
Show resolved
Hide resolved
joeygrover
approved these changes
Jun 15, 2022
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1738
This PR is [ready] for review.
Risk
This PR makes [minor] API changes.
Testing Plan
Unit Tests
Unit tests were updated with the new parameter and one test was added in SoftButtonManagerTest
Core Tests
Tested sending a softbutton with an image, verifying that the image displays.
Core version / branch / commit hash / module tested against: Core 8.1, Manticore and Sync 3
HMI name / version / branch / commit hash / module tested against: Generic_HMI
Summary
This PR works around a bug when connecting to Sync 2.0 head units that causes the app to attempt to upload a dynamic soft button images that will never work. This wastes bandwidth and time.
The issue happens because Sync 2.0 doesn't support softButtonCapabilities, so the library assumes all capabilities are available. However, Sync 2.0 does report that all graphics are unsupported in RAIR.displayCapabilities.graphicSupported.
Static images are supported by Sync 2.0 and should still upload on softbuttons.
Changelog
Bug Fixes
CLA