Skip to content
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

Fix media indicator icons #550

Conversation

LitvinenkoIra
Copy link
Contributor

Fixes #519

This PR is ready for review.

Testing Plan

Precondition:

  1. SDL and HMI are started
  2. App1 and App2 with HMI type 'Media' are registered
  3. App1 is activated
  4. App1 sends SetMediaClockTimer RPC with:
    "updateMode":"COUNTUP",
    "startTime": { "hours":0, "minutes":15, "seconds":30 },
    "backSeekIndicator": {"seekTime":30,"type":"TIME" },
    "forwardSeekIndicator": { "seekTime":30,"type":"TIME"}
  5. The seek indicators are "TIME" for App1
    'SEEKLEFT' button with "ico_seek_left.png" image is observed on HMI
    'SEEKRIGHT' button with "ico_seek_right.png" image is observed on HMI

Steps to reproduce:

  1. Activate App2

Expected result:

  1. App2 is activated successfully
  2. By default the seek indicators are "TRACK":
    SEEKLEFT' button with "ico_prew.png" image is observed on HMI for App2
    'SEEKRIGHT' button with "Ico_next.png" image is observed on HMI for App2

Summary

The issues is observed while working with multiple media applications registered. Once media indicators are changed for one application, second application shows also changed indicators instead of their own.
To resolve that, propery binding was changed to active model which triggers callbacks properly and allows to display the correct seek indicators for each media application.

CLA

The issues is observed while working with multiple media
applications registered. Once media indicators are changed
for one application, second application shows also changed
indicators instead of their own.
To resolve that, propery binding was changed to active model
which triggers callbacks properly and allows to display the
correct seek indicators for each media application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants