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

Risk status not updating after reopening backgrounded app #594

Closed
SoerenBusse opened this issue Jun 17, 2020 · 8 comments
Closed

Risk status not updating after reopening backgrounded app #594

SoerenBusse opened this issue Jun 17, 2020 · 8 comments
Assignees
Labels
bug Something isn't working confirmed Issues have been verified and should be fixed

Comments

@SoerenBusse
Copy link

Describe the bug

The risk status page shows "0 von 14 Tagen aktiv" when the app is reopened after the operating system put it into background.

I'd love to add a screenshot. This is not possible as described in the appropriate issue. This makes reporting bugs very hard.

Expected behaviour

The app should show "1 von 14 Tagen aktiv" when the app will be reopened from the background.

Steps to reproduce the issue

  1. Open the cwa-app
  2. Open the risk status page
  3. Change the app to something RAM intensive like a game etc.
  4. Change back to the cwa-app
  5. The App shows "0 von 14 Tagen aktiv" instead of "1 von 14 Tagen aktiv".

Technical details

Android 8.1.0
I think this issue will only occur on older devices with less RAM.

Possible Fix

Additional context

I think this is a minor or cosmetic bug, however I would like to share this unexpected behavior to you.

@SoerenBusse SoerenBusse added the bug Something isn't working label Jun 17, 2020
@tkowark
Copy link
Member

tkowark commented Jun 17, 2020

Hi @SoerenBusse , just to clarify: before putting the app to the background, it was showing "1 von 14 Tagen aktiv"?

@SoerenBusse
Copy link
Author

Hi @tkowark

Exactly. It was showing "1 von 14 Tagen aktiv". I think this might be related to am Life Cycle issue where the number of days isn't correctly initialized and the default int value is beging shown.

@htooisap
Copy link
Contributor

hi @SoerenBusse thank you for bringing this issue up.

Could you please check on the date and time settings on phone if:

  • the date and time settings are correct
  • if network-provided time is on

@jan-hofmeier
Copy link
Contributor

I can also reproduce the issue on my device. (Xperia XA2, Android 9). It seems to happen, when the App get's evicted from RAM and then gets restored, when you reopen it.

To reproduce: go to the risk status activity and then open lots of other apps, so the CWA app, will be killed. The next time it gets opened, it takes a little bit longer, as it gets restored from storage and it will show "1 von 14 Tagen aktiv"

jan-hofmeier added a commit to jan-hofmeier/cwa-app-android that referenced this issue Jun 22, 2020
…warn-app#594

Fix risk status not updating after reopening backgrounded app.
@jakobmoellerdev
Copy link
Contributor

Just as a quick question: If you say you can reproduce it would mean that it shows "0 von 14 Tagen aktiv" not "1 von 14 Tagen aktiv" after restoring the app like you describe @jan-hofmeier. Did I get this wrong or is there a misunderstanding?

@jan-hofmeier
Copy link
Contributor

@jakobmoellersap You are correct, I meant "0 von 14 Tagen aktiv"

@jakobmoellerdev
Copy link
Contributor

Okay, just for confirmation: Does this issue persist with 1.0.4 of the App?

@jan-hofmeier
Copy link
Contributor

@jakobmoellersap yes, I just tested it again to make sure. I have 1.0.4 and still have the issue

@AlexanderAlferov AlexanderAlferov self-assigned this Jun 26, 2020
@AlexanderAlferov AlexanderAlferov added confirmed Issues have been verified and should be fixed in progress The issue is currently being resolved and removed in progress The issue is currently being resolved labels Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working confirmed Issues have been verified and should be fixed
Projects
None yet
Development

No branches or pull requests

6 participants