- Jan 06, 2021
-
-
fynngodau authored
* Use ContextCompat when accessing color resources #1924 * Update tests for #1924 * Fix incorrect color A previous commit changed a color incorrectly, related to some mistake made when merging changes. * Add compat extension to Context * Replace ContextCompat calls with Context extension functions * Update tests * Add missing imports * Fix tests * Fix lint Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Mohamed Metwalli authored
-
fynngodau authored
Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Jan 05, 2021
-
-
Mohamed Metwalli authored
* Add tooling layout tag for better overview * Ignore error for ProtectedPermissions * Add instrumentation tests to capture screenshots in Onboarding flow * Specify java version to avoid assembling APK failure * Define custom annotation for tests * Use fastlane Screengrab * ignore screenshots folder * Remove redundant imports and rules * Add View assertion to make sure Fragment is already displaying its views to avoid capturing blank screenshots * List some configurations for fastlane * Add TODO for locale change * Allow timestamp suffix to have different screenshots names * Scroll and grab another screenshot in OnboardingFragment * Delete import * Filter tests using Screenshot annotation * Add locale change rule in UI tests * Limit screenshots only for DE locale * Enable screenshots for all locales * Enable screenshot test * lint cleaning * Use JavaVersion to specify java version * Add an inline function that defaults to AppTheme * Update dcos for launchFragmentInContainer2 * lint * Define generic apk_path * Support cleaning device status bar before taking screenshot * Correct docs Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Philipp Nowak authored
* Localize dates in contact diary (EXPOSUREAPP-4485) (#2009) * Add additional unit test to cover US and UK for english date formatting (EXPOSUREAPP-4485) (#2009) * Adjust expected date strings (EXPOSUREAPP-4485) (#2009) * Correct the suffix for "year" for bulgarian dates in unit tests (EXPOSUREAPP-4485) (#2009) * Use SystemInfoProvider implementation instead of static Locale.getDefault (EXPOSUREAPP-4485) (#2009) * - Revert usage of SystemInfoProvider - Introduce Context.getLocale() extension function - Adjust unit tests to use kotest matchers (EXPOSUREAPP-4485) (#2009) * (Add accidentally missing files of the previous commit) - Revert usage of SystemInfoProvider - Introduce Context.getLocale() extension function - Adjust unit tests to use kotest matchers (EXPOSUREAPP-4485) (#2009) Co-authored-by:
I502720 <axel.herbstreith@sap.com>
-
Matthias Urhahn authored
* Introduce lastSubmissionUserActivityUTC settings and use it as "skip condition" for the SubmissionTask * Introduce background submission. * Fix worker not being canceled. * Disable auto submission is consent is not given. * Cancel worker by tag. * Introduce per TaskRequest error-handling. Set SubmissionWorker deployed task requests to SILENT. * Fix test regressions due to api change. * Add SubmissionWorker test. * Add AutoSubmissionTest.kt * Don't reset retry attempt count and date when enabling MONITOR or SUBMIT_ASAP. Otherwise would loose that data when the app is restarted despite it still "trying". Only reset the data on DISABLED, i.e. when the task finishes or give sup. * Add additional SubmissionTaskTest.kt related to automatic submission behavior. * Remove unused value. * Fix typo * Return Result.retry() on exceptions. We retry until we are successful, any abort conditions will be handled by the task. * LINTs * Fix test regression.
-
Philipp Nowak authored
Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
- Jan 04, 2021
-
-
Philipp Nowak authored
Fix sorting of persons and places to be case insensitive for names (EXPOSUREAPP-4488)(closes #2012) (#2017) * Fix sorting of persons and places to be case insensitive for names and add some unit tests for both parts (#2012) * Address code review comments (EXPOSUREAPP-4488) (#2012) Co-authored-by:
Matthias Urhahn <matthias.urhahn@sap.com>
-
Matthias Urhahn authored
* If maxExposureDetectionsPerDay is 0, return a saner value than 99 days. maxExposureDetectionsPerDay is checked separately and will abort the download task if necessary. * When checking whether the last detection was recent, add a sanity check that causes it to not skip, if the last detection was in our future. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Change primary key for risk result database to a monotonic ID. This prevents time travel from breaking "get latest" as we will get the latest by monotonic ID, instead of "calculatedAt". * We don't need `fallbackToDestructiveMigrationFrom(3)` until we actually upgrade the schema to 3. * Fix database test (missing monotonicId) * Catch exceptions during migrations and recreate the table. * Add check for result size after recreating+insertion. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 30, 2020
-
-
Mohamed Metwalli authored
-
- Dec 28, 2020
-
-
Matthias Urhahn authored
* Add state-aware illustrations for Settings>BackgroundModeStatus Refactor various background mode related functions into a common class that can be injected and observed. * Rename c to context * Use core-ktx extension to access system services * Fix wrong import statement and a typo * Add more test cases Co-authored-by:
Mohamed Metwalli <mohamed.metwalli@sap.com>
-
Matthias Urhahn authored
* Fix deadman notification text not being expandable and clean up code. * Further notification code cleanup. * Use core-ktx extension to access system services Co-authored-by:
Mohamed Metwalli <mohamed.metwalli@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
Matthias Urhahn authored
* Fix icon in settings when bluetooth is disabled. * Rename c to context Co-authored-by:
Mohamed Metwalli <mohamed.metwalli@sap.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 23, 2020
-
-
Matthias Urhahn authored
* Let the AppConfig validity check use absolute values, to support device time check behavior. * Add mapping for "disable-device-time-check" to app config. * Show popup dialog if the device time is invalid. * Remove extra retrofit cache (use only LocalAppConfigSource.kt) * Exposure device time check * Reset user acknowledgement * LINTs * Add test menu option to disable device time check via affecting the config mapping. * Download, but don't submit keys if device time is incorrect. Abort risk level calculation if time is incorrect. * Due to multiple properties in ConfigData affecting `isDeviceTimeCorrect`, make it a body property and don't allow overriding via constructor. * Add unit test for test settings affecting the device config only in tester builds. * Show notification regarding incorrect time when device is in the background. * Fix test regressions and add additional test cases for download and risk task abort conditions on incorrect device time. * Fix merge regressions. * Add time unit to log statement. * Fix incorrect time dialog showing in a loop when entering leaving the home screen. * Remove unused code path for clear(). * Print additional timestamps to help debugging efforts in the future.
-
Matthias Urhahn authored
* Don't log all exposure windows on `RiskLevelTaskResult.toString()` due to performance impact when logging. * Add RiskLevelResult flow optimized for just getting the latest two results. * Share risk level result subscriptions. The delay when switching from Home to RiskDetails fragment will be bridged and no re-loading necessary. * Fix test regressions * Remove test code. * Introduce specific query for "latestAndLastSuccessful". Add unit tests for SQL queries. * Fix test regressions due to missing mocking. * Address merge conflicts. * Fix instrumentation tests not building. Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 22, 2020
-
-
Matthias Urhahn authored
* Refactor home-screen and tracing details fragment. * Use recycler view to display list items * Remove nested/included layouts and make Android Studio layout previews functional * Split list items into independent elements (positive/negative/pending) * Layout cleanups & flattening * Small padding and alignment fixes * Clean up tests and fix class names. * Move UI classes towards "package by feature", each feature has their own ui package. * LINTs * Fix log statements. * Only crash in tester builds. * Update Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/main/home/HomeAdapter.kt Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Refactor adapter init. * LINT * Remove "card" from property name, the "TracingStateProvider" is UI agnostic. * LINTs * Don't show the risk card if there is a positive test result. * Fix crash on init with unknown resource IDs (before data binding is available). * Fix progress card not being colored in risk details fragment * LINTs * Prepare viewholders for payload use. * Update Corona-Warn-App/src/main/res/layout/home_fragment_layout.xml Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Improve toolbar and tracing bar behavior, scrollable, fewer nested layouts. * Adjust popup theme. * Remove color state list for cards, click behavior is done via `selectableItemBackground` * Fix visual artifact when expanding toolbar menu. * Align box coloring in dark mode and click animation. * Fix flickering Test and FAQ card. * Fix missing "enable tracing" button in home card. * Fix risk/tracing details elevation/dividers in light and dark mode * Resolve merge regressions and include contact diary card via recyclerview. * Adjust toolbar background color to new mockups (diary mockups have lighter darkmode). * Update Corona-Warn-App/src/main/res/layout/home_card_container_layout.xml Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Update Corona-Warn-App/src/main/res/layout/tracing_content_failed_view.xml Co-authored-by:
fynngodau <fynngodau@mailbox.org> * Tint card background color. Just replacing the background didn't ahve the desired effect. * Fix possible NPE on last encounter calculation. * LINTs and typos. Co-authored-by:
fynngodau <fynngodau@mailbox.org>
-
- Dec 21, 2020
-
-
Chilja Gossow authored
* trim name if containing other characters than white spaces remove length restriction in validity check only save when valid * klint * test * review comment * klint Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
- Dec 17, 2020
-
-
Chilja Gossow authored
* Merge branch 'feature/4152-contact-diary' of https://github.com/corona-warn-app/cwa-app-android into feature/4152-contact-diary # Conflicts: # Corona-Warn-App/schemas/de.rki.coronawarnapp.contactdiary.storage.ContactDiaryDatabase/1.json # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/DataReset.kt * clean up DI * add recycler view * clean up * new texts * clean up * clean up * background, dialog * klint * klint * klint * review comments * review comments * review comments * Merge branch 'feature/4152-contact-diary' into feature/4161-4162-edit-person-location # Conflicts: # Corona-Warn-App/src/main/java/de/rki/coronawarnapp/contactdiary/ui/onboarding/ContactDiaryOnboardingFragment.kt
-
AlexanderAlferov authored
* Data retention with test fragment and tests * Formatting * Minor fix * Removed unnecessary injection * Resolve merge conflicts * Adjusted Tasks with tests * Formatting * Refactoring
-
- Dec 14, 2020
-
-
Matthias Urhahn authored
-
Matthias Urhahn authored
* Fix crash when trying to update TEK history without tracing enabled. Refactor tracing permission requests and then re-use the tracing permission requests within the TEK updater logic. * Fix test regressions. * Implement additional unit tests for TEKHistoryUpdater.kt * Additional unit tests for ENF related permission requests. * Additional tests for TEKHistory Updater/TracingPermission callbacks. * Additional tests for TracingPermissionHelper.kt handleActivityResult calls.
-
- Dec 11, 2020
-
-
Matthias Urhahn authored
* Explicitly log invalid symptom data. * Unless the symptom flow is successfully completed, we assume Symptoms.NO_INFORMATION. The information is based from one fragment to the next. The stored symptom data is only updated if the last fragment successfully completes. * Unit test for symptom indication. * Update Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/symptoms/calendar/SubmissionSymptomCalendarViewModel.kt Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com> * Update Corona-Warn-App/src/main/java/de/rki/coronawarnapp/submission/TransmissionRiskVectorDeterminator.kt Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com> * fixed super-fatal code formatting Co-authored-by:
chris-cwa <69595386+chris-cwa@users.noreply.github.com> Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com> Co-authored-by:
chris-cwa <chris.cwa.sap@gmail.com>
-
Oliver Zimmerman authored
Co-authored-by:
Ralf Gehrer <ralfgehrer@users.noreply.github.com>
-
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
-