mirror of
https://github.com/bitwarden/android.git
synced 2024-11-21 17:05:44 +03:00
PM-14458: Fix notifications prompt on first use (#4275)
This commit is contained in:
parent
49642f5a1d
commit
63324fcec1
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue