[PM-11307] Fix typo in method name: shouldShouldRequestPermissionRationale (#3821)

This commit is contained in:
Wu Nan 2024-08-26 22:58:19 +08:00 committed by GitHub
parent 88b40cfd10
commit ace5f19375
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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
}

View file

@ -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)

View file

@ -62,7 +62,7 @@ class FakePermissionManager : PermissionsManager {
return checkPermissionResult
}
override fun shouldShouldRequestPermissionRationale(
override fun shouldShowRequestPermissionRationale(
permission: String,
): Boolean {
return shouldShowRequestRationale