Skip to content
Snippets Groups Projects
Unverified Commit 0f6b440a authored by Alex Paulescu's avatar Alex Paulescu Committed by GitHub
Browse files

Added logic for showing notification on risk level change (EXPOSUREAPP-2569) (#1480)


* Added logic for showing notification on risk level change

* Got rid of magic number

* Fixed ktlint issue

* Notification only shows up when risk card goes from red to green

* Showing dialog onResume

* Added static string for preference key and renamed method to better reflect usage

* Whether not weather

* Showing dialog is handled by the VM

* Fixed ktlint error

* Fixed an issue where the dialog would be shown only after navigating back to the home fragment.

* Move decision logic for showing the lowered risk into the viewmodel.

* Make the lowered risk level score event observable.

* Fix wrong init value used for testing.

* Update strings.xml

* Fix test regressions due to static LocalData access.

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: default avatarMatthias Urhahn <matthias.urhahn@sap.com>
parent e90f5e3d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment