Help for Key Figures / Trends shows "1%%" and "5%%" in text
See original GitHub issueAvoid duplicates
- Bug is not mentioned in the FAQ
- Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
- Bug is not already reported in another issue
Technical details
- Device name: Samsung Galaxy A5 (2017) SM-A520F
- Android version: 8.0.0
- App version: 2.12.2
Describe the bug
The percentage symbol (%) shown under Key Figures / Trends is displayed twice in succession (%%).
This is a regression from version 2.12.1.
It affects at least the locales English (United States) and Deutsch (Deutschland).
Steps to reproduce the issue
With locale set to English (United States)
- Open CWA
- Scroll down to 7-Day Incidence
- Tap on i icon
- In Key Figures scroll down to Trend
- Note the text
“The arrow direction indicates whether the trend is increasing, decreasing, or remaining steady – that is, demonstrates a deviation of less than 1%% compared to the previous day or 5%% compared to the previous week (taking decimal places into account).”
Expected behavior
Only one % percentage symbol should be displayed at a time.
Compare to screenshot from 2.12.1 where this was correctly shown:
Possible Fix
The text comes from string statistics_explanation_trend_text
.
Review code in 2.12.2: https://github.com/corona-warn-app/cwa-app-android/blob/1f3a4685332c8f9eb9a35094c8ff957f7b9a2dc4/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/statistics/ui/StatisticsExplanationFragment.kt#L34-L38 which has changed from 2.12.1 which used the following lines: https://github.com/corona-warn-app/cwa-app-android/blob/6677a18c5b6e96d07bf707c88a4216d13eec407d/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/statistics/ui/StatisticsExplanationFragment.kt#L34-L38
Additional context
Related to new release tag/v2.12.2 posted by @kaddaSz containing Fix: Strings double percentage #4278 from @AlexanderAlferov.
Internal Tracking ID: EXPOSUREAPP-10203
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top GitHub Comments
@dsarkar
You’re welcome! Hope you have a nice day!
@dsarkar Do you want to add the Fix 2.13 label here?
The fix “Double percentage (EXPOSUREAPP-10214)” https://github.com/corona-warn-app/cwa-app-android/pull/4289 is in the 2.13.0 milestone.