PM-14458: Fix notifications prompt on first use (#4275)

This commit is contained in:
David Perez 2024-11-08 17:02:58 -06:00 committed by GitHub
parent 49642f5a1d
commit 63324fcec1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ fun PendingRequestsScreen(
isFdroid || isFdroid ||
isBuildVersionBelow(Build.VERSION_CODES.TIRAMISU) || isBuildVersionBelow(Build.VERSION_CODES.TIRAMISU) ||
permissionsManager.checkPermission(Manifest.permission.POST_NOTIFICATIONS) || permissionsManager.checkPermission(Manifest.permission.POST_NOTIFICATIONS) ||
!permissionsManager.shouldShowRequestPermissionRationale( permissionsManager.shouldShowRequestPermissionRationale(
permission = Manifest.permission.POST_NOTIFICATIONS, permission = Manifest.permission.POST_NOTIFICATIONS,
) )
BitwardenModalBottomSheet( BitwardenModalBottomSheet(

View file

@ -46,7 +46,7 @@ class PendingRequestsScreenTest : BaseComposeTest() {
} }
private val permissionsManager = FakePermissionManager().apply { private val permissionsManager = FakePermissionManager().apply {
checkPermissionResult = false checkPermissionResult = false
shouldShowRequestRationale = true shouldShowRequestRationale = false
} }
@Before @Before