From e8382c9eff37e937400cae70e05ba7d1d7fb8b8b Mon Sep 17 00:00:00 2001
From: Chilja Gossow <49635654+chiljamgossow@users.noreply.github.com>
Date: Wed, 9 Dec 2020 18:40:39 +0100
Subject: [PATCH] Remove navigation to home screen from dialog on warn others
 screen (EXPOSUREAPP-4164) #1842

Co-authored-by: Ralf Gehrer <ralfgehrer@users.noreply.github.com>
---
 ...SubmissionResultPositiveOtherWarningNoConsentViewModel.kt | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/warnothers/SubmissionResultPositiveOtherWarningNoConsentViewModel.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/warnothers/SubmissionResultPositiveOtherWarningNoConsentViewModel.kt
index 347832463..8ad813794 100644
--- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/warnothers/SubmissionResultPositiveOtherWarningNoConsentViewModel.kt
+++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/warnothers/SubmissionResultPositiveOtherWarningNoConsentViewModel.kt
@@ -43,10 +43,7 @@ class SubmissionResultPositiveOtherWarningNoConsentViewModel @AssistedInject con
             }
 
             override fun onPermissionDeclined() {
-                routeToScreen.postValue(
-                    SubmissionResultPositiveOtherWarningNoConsentFragmentDirections
-                        .actionSubmissionResultPositiveOtherWarningNoConsentFragmentToMainFragment()
-                )
+                // stay on screen
             }
 
             override fun onError(error: Throwable) {
-- 
GitLab