This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
Homescreen Notifications, even though keys were submitted (EXPOSUREAPP-3181, EXPOSUREAPP-3182) #1418
Merged
harambasicluka
merged 5 commits into
release/1.6.x
from
fix/3182-3181-notifications-in-invalid-states
Oct 27, 2020
Merged
Homescreen Notifications, even though keys were submitted (EXPOSUREAPP-3181, EXPOSUREAPP-3182) #1418
harambasicluka
merged 5 commits into
release/1.6.x
from
fix/3182-3181-notifications-in-invalid-states
Oct 27, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…eck for finished submission Signed-off-by: Kolya Opahle <k.opahle@sap.com>
kolyaopahle
added
backend
Issues related to internal work not directly correlated to UI interaction
maintainers
Tag pull requests created by maintainers
labels
Oct 16, 2020
harambasicluka
changed the title
Homescreen Notifications, even though keys were submitted (EXPOSUREAPP-3181/3182)
Homescreen Notifications, even though keys were submitted (EXPOSUREAPP-3181, EXPOSUREAPP-3182)
Oct 22, 2020
3 tasks
ralfgehrer
reviewed
Oct 26, 2020
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/storage/LocalData.kt
Outdated
Show resolved
Hide resolved
ralfgehrer
reviewed
Oct 26, 2020
@@ -89,13 +89,18 @@ class DiagnosisTestResultRetrievalPeriodicWorker( | |||
* @see TestResult | |||
*/ | |||
private fun initiateNotification(testResult: TestResult) { | |||
if (LocalData.isTestResultNotificationSent() || LocalData.submissionWasSuccessful()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return if ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik this is not possible as return if always requires an else branch
Signed-off-by: Kolya Opahle <k.opahle@sap.com>
d4rken
approved these changes
Oct 27, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
harambasicluka
approved these changes
Oct 27, 2020
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
harambasicluka
deleted the
fix/3182-3181-notifications-in-invalid-states
branch
October 27, 2020 16:19
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
backend
Issues related to internal work not directly correlated to UI interaction
maintainers
Tag pull requests created by maintainers
prio
PRs to review first.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a few additional checks to the test result fetching and risk level calculation tasks to check for prior test submission and stops the notification when tests have been submitted already.