Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Fix invisible tracing settings screen if the last calculation failed (EXPOSUREAPP-4717) #2185

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Jan 21, 2021

TracingDetailsItemProvider is used for the tracing/risk details screen.
This has specific behavior that the logging period is not shown if the last calculation failed.
By reusing this data provider for the tracing settings, if the last calculation failed, we never set "loggingPeriod".
If loggingPeriod is null, the databinding causes the layout to be invisible.

Testing

  • Produce a "risk calculation failed" card on the homescreen.
  • Tap the risk status bar which should take you to the settings.
    • Before: Invisible layout
    • Now: Visible layout 馃コ

Screenshot from 2021-01-21 18-46-40
Screenshot from 2021-01-21 18-46-30

TracingDetailsItemProvider is used for the tracing/risk details screen.
This has specific behavior that the logging period is not shown if the last calculation failed.
By reusing this data provider for the tracing settings, if the last calculation failed, we never set "loggingPeriod".
If loggingPeriod is null, the databinding causes the layout to be invisible.
@d4rken d4rken added bug Something isn't working maintainers Tag pull requests created by maintainers labels Jan 21, 2021
@d4rken d4rken added this to the 1.11.0 milestone Jan 21, 2021
@d4rken d4rken requested a review from a team January 21, 2021 17:47
@sonarcloud
Copy link

sonarcloud bot commented Jan 21, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@harambasicluka harambasicluka added the prio PRs to review first. label Jan 22, 2021
@ralfgehrer ralfgehrer self-assigned this Jan 22, 2021
@LukasLechnerDev LukasLechnerDev self-assigned this Jan 22, 2021
Copy link
Contributor

@ralfgehrer ralfgehrer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely on Pixel (Android 10)

Copy link
Contributor

@LukasLechnerDev LukasLechnerDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃憤 Fixed. Tested on Samsung S20+, Android 11

@LukasLechnerDev LukasLechnerDev merged commit 52606be into release/1.11.x Jan 22, 2021
@LukasLechnerDev LukasLechnerDev deleted the fix/tracing-details-empty-if-risk-calculation-failed branch January 22, 2021 10:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working maintainers Tag pull requests created by maintainers prio PRs to review first.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants