This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed traces of grey risk card (EXPOSUREAPP-3051) (#1699)
* Removed traces of grey risk card. * Removed UNKNOWN_RISK_INITIAL constant. * Removed unused method. * Removed old comments. * Introduce risklevel calculation failure state to get consistent card states. * Cleaned up the risk card states. Refactored "RiskLevel" to be calculated based on either result or failure reasons. Added the new "no internet" error card. * Updated color states. * Fixed card color issues. * Fixed detekt issues. * Remove test for deleted file. * Fix test regressions. * Fixed tests and LINTs. Co-authored-by: harambasicluka <[email protected]> Co-authored-by: Matthias Urhahn <[email protected]>
- Loading branch information
1 parent
2b04bee
commit 86b29f7
Showing
58 changed files
with
473 additions
and
965 deletions.
There are no files selected for viewing
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
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
2 changes: 1 addition & 1 deletion
2
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/risk/RiskLevelConstants.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package de.rki.coronawarnapp.risk | ||
|
||
object RiskLevelConstants { | ||
const val UNKNOWN_RISK_INITIAL = 0 | ||
const val NO_CALCULATION_POSSIBLE_TRACING_OFF = 1 | ||
const val LOW_LEVEL_RISK = 2 | ||
const val INCREASED_RISK = 3 | ||
const val UNKNOWN_RISK_OUTDATED_RESULTS = 4 | ||
const val UNKNOWN_RISK_OUTDATED_RESULTS_MANUAL = 5 | ||
const val UNKNOWN_RISK_NO_INTERNET = 6 | ||
const val UNDETERMINED = 9001 | ||
} |
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
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
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
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
Oops, something went wrong.