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

Check device time (EXPOSUREAPP-2998) #1985

Merged
merged 20 commits into from
Dec 23, 2020
Merged

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Dec 22, 2020

Incorrect device time handling.

  • Evaluate current device time on each config update
  • Show popup dialog on incorrect device
  • Show notification if device time is incorrect and app is in background
  • Download but do not submit keys if device time is incorrect
  • Don't perform risk calculation if time is incorrect

Testing

  • Play with the device time (timetravel)
  • Force app config refreshes via test menu
  • Filter logcat for AppConfigSource output
  • Comapre against techspec

@d4rken d4rken added enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers labels Dec 22, 2020
@d4rken d4rken added this to the 1.11.0 milestone Dec 22, 2020
@d4rken d4rken requested review from a team December 22, 2020 15:54
# Conflicts:
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/home/HomeFragment.kt
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/DataReset.kt
…isk task abort conditions on incorrect device time.
# Conflicts:
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/home/HomeFragment.kt
#	Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/home/HomeFragmentViewModel.kt
#	Corona-Warn-App/src/test/java/de/rki/coronawarnapp/main/home/HomeFragmentViewModelTest.kt
@ralfgehrer ralfgehrer self-assigned this Dec 23, 2020
android:theme="@style/switchBase" />

</LinearLayout>

Copy link
Contributor

Choose a reason for hiding this comment

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

can you just use Switch without LinearLayout?

Copy link
Member Author

Choose a reason for hiding this comment

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

We could, but I'm sure there will be more switches in the future to toggle other app config features, the whole box is there to contain those switches. We could maybe add a title to it, but IMHO it is okay as it is.

ralfgehrer
ralfgehrer previously approved these changes Dec 23, 2020
@sonarcloud
Copy link

sonarcloud bot commented Dec 23, 2020

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

47.8% 47.8% Coverage
0.0% 0.0% Duplication

@d4rken d4rken merged commit 6e7d89e into release/1.11.x Dec 23, 2020
@d4rken d4rken deleted the feature/2998-time-check branch December 23, 2020 20:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement of an existing feature maintainers Tag pull requests created by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants