mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
[PM-11307] Fix typo in method name: shouldShouldRequestPermissionRationale (#3821)
This commit is contained in:
parent
88b40cfd10
commit
ace5f19375
3 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ interface PermissionsManager {
|
|||
/**
|
||||
* Method for checking if an informative UI should be shown the user.
|
||||
*/
|
||||
fun shouldShouldRequestPermissionRationale(
|
||||
fun shouldShowRequestPermissionRationale(
|
||||
permission: String,
|
||||
): Boolean
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ class PermissionsManagerImpl(
|
|||
override fun checkPermissions(permissions: Array<String>): Boolean =
|
||||
permissions.map { checkPermission(it) }.all { isGranted -> isGranted }
|
||||
|
||||
override fun shouldShouldRequestPermissionRationale(
|
||||
override fun shouldShowRequestPermissionRationale(
|
||||
permission: String,
|
||||
): Boolean =
|
||||
activity.shouldShowRequestPermissionRationale(permission)
|
||||
|
|
|
@ -62,7 +62,7 @@ class FakePermissionManager : PermissionsManager {
|
|||
return checkPermissionResult
|
||||
}
|
||||
|
||||
override fun shouldShouldRequestPermissionRationale(
|
||||
override fun shouldShowRequestPermissionRationale(
|
||||
permission: String,
|
||||
): Boolean {
|
||||
return shouldShowRequestRationale
|
||||
|
|
Loading…
Reference in a new issue