-
Notifications
You must be signed in to change notification settings - Fork 494
Layout-Bug for TracingCard UI states resulting in not readable risk card/risk details fragment #1598
Comments
The other day I was deactivating exposure logging again, and then in the next morning re-activating it from insinde Google's COVID-19-Notifications page, and from there navigating to CWA's main screen. This time the risk card had the expected dark grey background color when downloading diagnosis keys: This makes me think, that there is a problem with inhereting the color schemes from one layout to the other, rather then having a problem with defining the right color scheme for the right UI state. So, maybe it's worth to have another look into https://github.com/corona-warn-app/cwa-app-android/blob/main/Corona-Warn-App/src/main/res/layout/include_risk_card_content.xml |
Hi @SamuraiKek , I found your PR #1615 targetted for 1.8.0. Looks like, as a side effect the bug reported here could be solved. However, will there be a chance to fix #1598 before 1.8.0? According to Google Play Store reviews, there is a number of users left behind a bit irritated of having a white risk card/white risk details fragment. |
Hi @vaubaehn, yes, it looks like my PR could potentially fix this issue as well, although I don't believe there's going to be a fix for it before 1.8.0. |
@SamuraiKek |
Hey @vaubaehn , I've mirrored this issue to Jira (ticket ID: EXPOSUREAPP-3834) now so that it gets properly tracked. We will see what we can do about it before the next release. As always, we'll notify you here when a fix is available. Thanks for the report, Corona-Warn-App Open Source Team |
Some additional information: |
Thanks for the detailed description.
The risk card has changed over the various releases, getting new states with each, making the state matrix more complex with each step. I'm working on a complete overhaul:
|
Related PR #1751. Corona-Warn-App Open Source Team |
Overall PR: #1699 Corona-Warn-App Open Source Team |
Hi @vaubaehn and community, Thank you for your contributions. This issue has been fixed. We will close this ticket now. Many thanks, best regards. DS Corona-Warn-App Open Source Team |
Avoid duplicates
Describe the bug
In the past days, CWA was fetching diagnosis keys from server in the background very soon after 0:00 UTC. Because the new DKs hadn't been deployed yet at that point in time, CWA was checking with old data from the day before... But this is a seperate issue (#1691).
To make sure to have a download of 'fresh' DKs, I deactivated Exposure Logging last night before sleep.
In the morning, I opened CWA, navigated to the fragment that allows for enabling Exposure Logging, enabled logging again, and then immediately navigated back to the home screen. Instead of a risk card showing "Daten werden heruntergeladen..." there was only a blank/white risk card. Tapping and holding the risk card switched the background of the card to light grey, and a white text "Daten werden heruntergeladen.." was visible. After releasing the finger, CWA switched to risk details screen, showing only a blank/white screen. Navigating back to the main screen showed again a white risk card. After the download was finished, the risk card updated automatically to a green card with white text "Prüfung..." (shouldn't the background be dark grey either?). After the DKs had been provided to ENF, the risk card updated automatically to the green card "Low Risk".
I guess, the background color was not set correctly, while the (white) text was visible.
I made some screenshots... see below.
Expected behaviour
The risk card "Daten werden heruntergeladen..." and the risk details fragment should have a dark grey background, like seen in @d4rken 's screenshots #1486 . According to #1486 , the risk card should probably also have a dark grey background while "Prüfing läuft...".
Steps to reproduce the issue
Technical details
Possible Fix
Make sure that for UI states "Daten werden heruntergeladen..." and "Prüfung läuft..:" the correct background color is set when navigating from any other fragment to main screen.
edit:
Probably the bug is here:it's probably here
Looks likeR.color.card_unknown
has background color white, orRiskLevelConstants
should be defined for "Daten werden heruntergeladen..." and "Prüfung läuft...".edit2: Would maybe make sense to defineRiskLevelConstants
for "Daten werden heruntergeladen..." und "Prüfung läuft...": Looks like while downloadRiskLevelConstants
is unknown, and while "Prüfung läuft..."RiskLevelConstants
is already "Low risk".edit3: Digging some more, for me seems thatR.color.card_unknown
should point to color scheme<color name="colorSemanticNeutralRisk">#5D6E80</color>
, but obviously<color name="colorSemanticUnknownRisk">#FFFFFF</color>
is used:don't lookSee also here for definition ofRiskLevelConstants
:save your time not looking hereAdditional context
Feel free to hide above screenshots for better readability of this issue, after mirroring to Jira.
Related PR #1751.
Overall PR: #1699
Internal Tracking ID: EXPOSUREAPP-3834
The text was updated successfully, but these errors were encountered: