- Dec 11, 2020
-
-
Matthias Urhahn authored
* Change dialog cancel behavior. Stay on screen. * Switch dialog button. The "positive" action is always in reference to the dialog's question. So positive here means to not warn others, while "warn others" is the negative action that cancels the dialog. * Remove unused code. * Simplify fragment init. * LINTs Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 10, 2020
-
-
Oliver Zimmerman authored
* Started new card includes. * Strings added, card layout complete * Added boolean value for whether or not test result has been seen. Implemented new card. * Adjusted true / false conditions * Added navigation for new card and button. * Added additional case where test result is negative and not seen * Adjusted navigation, added check for positive card on homescreen to not show unless test result has been seen * Added doNavigate - whoops. * Lint fixes * Adjust existing tests * More test adjustments. * More test adjustments * Nicjed submissionSettings.hasViewedTestResult * Removed duplicate string value. * Make risk card visible with new card, regardless of result. * Added small test for new card. * Overhaul. Now using LiveData and observing within fragment for true/false value for 'gone' in XML layout * Unfix the 'fixed' tests * Lint, trailing comma * Refix some tests that the unfixing didn't.... fix. * Reset test related settings. * Change button to match iOS design and actually make sense... * Fixed merge regressions and adjusted card states. * Adjusted tests after refactor * Changes to not break reminder that was relying on changed function * Test changes, instance now contains hasResultBeenSeen boolean * More test adjustments * Added resetTestRelatedSettings to removeTestFromDevice. * Set to test related prefs to false within Repository rather than Settings. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
AlexanderAlferov authored
* Test result available notification added * Refactored NotificationHelper to injectable class Adjusted tests and classes * Use the pending test result fragment as forwarding tool. * Fix test regression. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
* Renamed variables * Don't observe the countryList on the main thread (as it comes directly via appconfig now)
-
Matthias Urhahn authored
* Draft: Split up test result fragment into pending and negative. * TODO pending fragment needs to forward automatically when the result is available * When do we check if tracing is enabled? * When we receive a non-pending test result while on the pending-result fragment, we forward automatically to the right screen. * Clean up pending test result layout. * Extract invalid test result fragment into it's own screen. * LINTs * Remove unused problematic API. * Fix merge regressions. * Address PR comments: Improve navigation.
-
Matthias Urhahn authored
* Don't execute the update checker (and it updating the config) on the main thread. * LINTs * Add unit tests for launcher viewmodel and update checker edge cases. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
chris-cwa authored
* legacy config is never valid and should always trigger download of remote config * If the validity duration is 0, the config is never valid. Add unit tests for validity edge cases. * Add negative time cases. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
* Remove the extra flow that would cache the countries. The app config itself is cached already. When accessing the countrylist they will be mapped from the latest available app config. * Undo name shortening. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 09, 2020
-
-
Kolya Opahle authored
* Added calls to LocalData.isTestResultNotificationSent to test removal sites Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Removed some now unused properties from LocalData Moved test removal to SubmissionRepository Fixed tests to work with new test removal Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Removed unused strings from the de-strings.xml Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Dec 08, 2020
-
-
Chilja Gossow authored
Add conditional text "Ihr Testergebnis wird Ihnen anschliessend angezeigt." (EXPOSUREAPP-4122) (#1834) * Use different texts depending on where the user comes from * klint Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Chilja Gossow authored
* fix tracing toggle: container and switch view use same logic sync switch view with internal tracing state * klint Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Dec 07, 2020
-
-
chris-cwa authored
* fixed: fields without values are visible; + logs * detect version update, force recalc on 1.7 -> 1.8 * detect version update in diagnosis keys task only * no connection type ignoring * Add test to ensure that parsing old configs from 1.7.x fails and the default fallback for 1.8.x is used. * Fix logging typo. * no wasLastDetectionPerformedRecently abort on app update * Fix lint issues * fixed condition * used shared settings * get last encounter at from enf v1 to display second line after app update while risk level calc is not finished * fixed di * fixed tests * fixed tests * fixed tests * Add unit tests for DownloadDiagnosisKeysTask.kt * fixed tests * Add tests for DownloadDiagnosisKeysSettingsTest Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Dec 03, 2020
-
-
Matthias Urhahn authored
* Submission upload, first draft. Storing Symptoms and TEKs. TODO: * Change upload task to use stored data. * Blocking upload task * Tests * Update symptoms on each screen. Integrate permission request and automatic TEK history update. TODO: * Cancel dialog * Blocking upload task * Tests * Add submission on cancel behavior. * LINTs and unit tests. * Hooking up navigation and first break through on TAN based submission. * Hook up navigation for QR Code to test result without consent. * Fix positive result consent given submission: Abort to Main Screen * Restore default environment. * Adjust notification target fragment. * Address LINTs * Clean up symptoms introduction nav actions. * Fix tests
-
- Dec 02, 2020
-
-
chris-cwa authored
* fixed: tasks are run, even if preconditions not met * test * test * test * Adjust test for preconditions. * Add task state logging messages. Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
AlexanderAlferov authored
* All your strings are belong to us! * Submission your consent screen * Unit test fix * Unit test fix * Unit test fix * Refactor view model, tests and events * Fixed test * Lint fix, added id to bottom divider
-
Matthias Urhahn authored
-
AlexanderAlferov authored
* Your test result available screen * Formatting * Lint fix
-
- Dec 01, 2020
-
-
Matthias Urhahn authored
* Remove "lastTimeDiagnosisKeysFromServerFetch" and replace it with less missleading data. While it was called "lastTimeDiagnosisKeysFromServerFetch" it was actually "last time we submitted keys to google". * To decide whether to refresh in "onResume", we now use "has there been any submission to the ENF?" * To display a timestamp on the risk card, we take the last successful submission to the ENF as the risk card displays the calculation results based on the latest submission. While we could use the last calculated risk level result timestamp, we currently also trigger risk calculations if there are no new submissions to the ENF, which would mean the timestamp is updated even though the result is not based on new data. I've also fixed the test fragment button behavior and added descriptions, the "Reset risk level" button surfaced the initial issue because it behaved like a "do a 75% data reset" button. * Tests and LINTs Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Don't show last risk contact when tracing is disabled. * Add unit test. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Nov 30, 2020
-
-
Matthias Urhahn authored
* Fix displayed details in tracing inactive states. * Simplified UI states. Replaced RiskLevel and RiskLevelConstants with RiskState { LOW; HIGH, FAILED }. * Fix low risk card missing the encounters if there have been more than 0. * Fix missing card divider/border on error cards in light mode. * Fix merge regression. * LINTs * Fix progress card colors on white card background color. * Fix progress card colors on white card background color. * Don't allow negative active tracing days. * Revert sync behavior (extra PR) * Address PR comments. Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
chris-cwa authored
Low Risk after update from 1.7.0 RC8 (in increased risk state) to 1.8.0 RC2 (EXPOSUREAPP-3988) (#1745) * check whether there already is a v2 exposure * check preconditions when selecting task for execution - not when scheduling it * fixed tests * fixed detekt * removed todo that was already addressed by d4rken * updated tests * https://github.com/corona-warn-app/cwa-app-android/pull/1745#discussion_r532568615 Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Oliver Zimmerman authored
-
Matthias Urhahn authored
* Add missing RiskLevelStorage reset call when using the internal app reset functionality. * Improve TaskController logging. * Use the day/hour of the last key package download to determine whether the key pkgs are outdated when calculating the risk level. Co-authored-by:
BMItter <46747780+BMItter@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Adding missing log tags, otherwise displays "BaseContinuationImpl" etc. * Remember the last risk level result for which we did a change check. This fixed the issue that if no new risk level calculation happened, and the last one triggered a notification, killing and restarting the app would also trigger a notification. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
BMItter <46747780+BMItter@users.noreply.github.com>
-
Maximilian Lenkeit authored
* Adopt Exposure Window test cases to new TRL encoding keys with report type RECURSIVE are dropped by Android in Exposure Window mode. The new encoding uses RECUSRIVE only with TRL 1 and 2 which are dropped anyway. https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-4039 * Adopt default App Config to new TRL encoding keys with report type RECURSIVE are dropped by Android in Exposure Window mode. The new encoding uses RECUSRIVE only with TRL 1 and 2 which are dropped anyway. https://jira-ibs.wbs.net.sap/browse/EXPOSUREAPP-4039 https://github.com/corona-warn-app/cwa-protocol-buffers/commit/634c13c687a8f84d737a23c84e0e7c86e8e8bf9d Co-authored-by:
BMItter <46747780+BMItter@users.noreply.github.com>
-
Chilja Gossow authored
* Extract native libs set to true for both builds (DEV) (#1689) * Fix sporadic worker crash on older android versions (EXPOSUREAPP-3987) (#1727) * Fix notification issues by introducing IDs (EXPOSUREAPP-3971) (#1732) * Reduce redundant code in notifications and introduce notification IDs * Clean up unused constants * Cancel risk score level notification once new test result is available * Add more logging Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> * Versionbump for 1.7.1/RC1 (DEV) (#1733) Co-authored-by:
Katharina Seiz <Katharina.Seiz@sap.com> Co-authored-by:
AlexanderAlferov <64849422+AlexanderAlferov@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
- Nov 29, 2020
-
-
Oliver Zimmerman authored
-
- Nov 27, 2020
-
-
BMItter authored
* Use lastRiskResult from DB * use correct format for windows and timestamp * klint * Reduce RiskLevelResult Storage API and fill exposure windows in risk result if available. * Default exposure windows to null while mapping * Don't add empty exposure windows list to risk results * fix broken tests * Added tests for exposure windows Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Nov 26, 2020
-
-
Matthias Urhahn authored
* Update cancellation dialog. * Remember selected date when returning. * Adjust cancellation dialog strings. * LINTs Co-authored-by:
Chilja Gossow <49635654+chiljamgossow@users.noreply.github.com>
-
Chilja Gossow authored
* create fragment, viewmodel, layout * remove info fragment * clean up * navigation change * navigate to data privacy review comments * move text to legal_strings.xml test code * legal_strings.xml * remove lifecycle assignment as it is redundant
-
Ralf Gehrer authored
* Reduce redundant code in notifications and introduce notification IDs * Clean up unused constants * Cancel risk score level notification once new test result is available * Add more logging Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
-
Matthias Urhahn authored
* Update to latest stable coroutines. * Fix flaky test. Depending how how fast items emitted, some intermediate values might never be emitted.
-
- Nov 25, 2020
-
-
Alex Paulescu authored
* 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 <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Kolya Opahle authored
Risk Calculation does not work because DiagnosisKeysDataMapping is not applied (EXPOSUREAPP-3895) (#1690) * We now check for the DiagnosisKeyDataMapping and apply it to the ENFClient if changed Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Moved diagnosisKeysDataMapping to windowProvider Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Renaming and linting Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Moved app config fetch to key provide task, added error handling, added logging to config replace Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Fixed old unit tests and implemented tests for config comparison, TestForAPIFragment is currently broken Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Linting * Added more unit testing for DefaultDiagnosisKeysDataMapper and fixed TestForAPIFragment Signed-off-by:
Kolya Opahle <k.opahle@sap.com> * Update default app config to latest version This includes a change for the default for reportTypeWhenMissing from 0 to 1, as 0 is not accepted by setDiagnosisKeysDataMapping. https://github.com/corona-warn-app/cwa-app-tech-spec/pull/10/commits/090801921f4a8581543a9f716fd0572c12901c71 https://github.com/corona-warn-app/cwa-protocol-buffers/commit/38a641e2a808c41d225e9fd09d27ec7959551412 * Fixed Unittests Co-authored-by:
Maximilian Lenkeit <maximilian.lenkeit@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Check whether the local config file exists before parsing it. * Force types deserialized via Gson to be non-null. Perform sanity checks and empty file deletion directly when trying to load the json file. * Check that empty json file is deleted. * LINTs * Test parsing exception. Co-authored-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Make use of `hasAppFeatures` to prevent accidental use of default values. * Swap order in if statement to remove unnecessary negation * Reduce visibility Co-authored-by:
ralfgehrer <mail@ralfgehrer.com> Co-authored-by:
Kolya Opahle <k.opahle@sap.com> Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com>
-
Matthias Urhahn authored
* Improve TaskController.kt logging * Cap TaskController's state history to 50 entries. * Determine oldest tasks to prune based on `finishedAt` instead of `startedAt` Co-authored-by:
Kolya Opahle <k.opahle@sap.com>
-
Ralf Gehrer authored
Co-authored-by:
harambasicluka <64483219+harambasicluka@users.noreply.github.com> Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
Persist ExposureWindow based risk level calculation results and update the UI (EXPOSUREAPP-3910,EXPOSUREAPP-3855) (#1705) * First draft to refactor `RiskRepository` away and persist risk level results produced by ExposureWindow calculations. TODO: Tests, Legacy data migration, Persist ExposureWindow's in tester builds. * Unit tests for refactored classes. * LINTs * First draft for legacy risk data migration. TODO: Tests. * Store exposure windows on device for tester builds and perform clean on them too after risk result deletions. Split RiskResultStorage such that the exposure window storage code is only available in deviceForTesters flavor builds. * simplification * no preference should return no value * Remove TODOs, singletons are refactored away ;) * Simplify RiskLevelTask interface * Split risk level storage implementations to let production (device flavor) have a NOOP for storing/deleting exposure windows. * Remove unused storage function. Add test skeletons. * unit test * unit test * Update risk card to show new window mode based information. * Fix test regressions. * Address PR comments. * LINTs * Everybody get's LINT for XMAS. * Finish unit tests and remove unused classes. Co-authored-by:
chris-cwa <chris.cwa.sap@gmail.com>
-