From 63324fcec105a4551d0150385830ed78e7586830 Mon Sep 17 00:00:00 2001 From: David Perez Date: Fri, 8 Nov 2024 17:02:58 -0600 Subject: [PATCH] PM-14458: Fix notifications prompt on first use (#4275) --- .../accountsecurity/pendingrequests/PendingRequestsScreen.kt | 2 +- .../pendingrequests/PendingRequestsScreenTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreen.kt b/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreen.kt index f38b56f25..9bea08324 100644 --- a/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreen.kt +++ b/app/src/main/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreen.kt @@ -114,7 +114,7 @@ fun PendingRequestsScreen( isFdroid || isBuildVersionBelow(Build.VERSION_CODES.TIRAMISU) || permissionsManager.checkPermission(Manifest.permission.POST_NOTIFICATIONS) || - !permissionsManager.shouldShowRequestPermissionRationale( + permissionsManager.shouldShowRequestPermissionRationale( permission = Manifest.permission.POST_NOTIFICATIONS, ) BitwardenModalBottomSheet( diff --git a/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreenTest.kt b/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreenTest.kt index 2311cc0b2..df33a0c95 100644 --- a/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreenTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/ui/platform/feature/settings/accountsecurity/pendingrequests/PendingRequestsScreenTest.kt @@ -46,7 +46,7 @@ class PendingRequestsScreenTest : BaseComposeTest() { } private val permissionsManager = FakePermissionManager().apply { checkPermissionResult = false - shouldShowRequestRationale = true + shouldShowRequestRationale = false } @Before