App Information does not scroll, version info truncated
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 This issue is closely related to https://github.com/corona-warn-app/cwa-app-android/issues/3059 “App Information cut off at bottom on small screen (2)” with Internal Tracking ID: EXPOSUREAPP-7040.
This issue is posted separately here due to different environments.
The original issue was https://github.com/corona-warn-app/cwa-app-android/issues/2302.
Technical details
- Device name: Google Pixel emulator
5.0" 1080x1920 420dpi - Android version: 10 (API 29) or Android 11 (API 30)
- App version: 2.3.2-RC2 & 2.4.0-RC7
Describe the bug
The App Information menu fails to scroll down in some configurations, cutting off the bottom end of the display.
Version | Result | Status |
---|---|---|
2.2.1 | Version displayed | ✔️ |
2.3.2-RC2 deviceForTestersDebug | Version truncated | ❌ |
2.4.0-RC7 deviceForTestersDebug | Version truncated | ❌ |
The issue is sensitive to display size and font size.
The last line of the screenshot following should show Version: 2.4.0-RC7
.
Steps to reproduce the issue
Setup
- (Android) Settings > Display > Advanced
- Set Font size to Large and Display size to Default
In CWA
- Start Screen, tap three-dot symbol
- Tap “App Information”
- Try to scroll down to bottom of view
Expected behavior
Using an API 29 emulator the App Information view should display the complete view including the last line which is the Version of the app. If the view is too large then it should be possible to scroll down until the app version number is visible.
It should be possible to scroll by tapping, holding and dragging anywhere in the scrolled view, however in this exact scenario it is only possible to scroll by using the area around the version number.
Investigation
PR https://github.com/corona-warn-app/cwa-app-android/pull/3098 from @SamuraiKek attempted to fix this issue. This did improve the situation for some configurations, but perhaps there are multiple root causes for this issue?
I am seeing a very strange effect. If I set a breakpoint on https://github.com/corona-warn-app/cwa-app-android/blob/9ec222a431340917834e831cc60edd14fa062d27/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/information/InformationFragmentViewModel.kt#L26
whilst the app is paused due to the breakpoint, the App Information can be scrolled. After resuming the execution of the app, it is only possible to scroll the App Information by grabbing the part of the view where the truncated version information is displayed.
Possible fix
Adding the following seems to mitigate the issue, as a workaround.
<Space
android:layout_width="match_parent"
android:layout_height="56dp" />
This is added immediately before https://github.com/corona-warn-app/cwa-app-android/blob/af6edf5885afeae9fe0243a8f0c9b6c30e3ec5d9/Corona-Warn-App/src/main/res/layout/fragment_information.xml#L125
Internal Tracking-ID: EXPOSUREAPP-7765
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
PR #3416 has been added to 2.4.0 milestone.
@MikeMcC399 Thanks for detailed feedback. I will forward your observations to the internal ticket.