if (PermissionX.permission.POST_NOTIFICATIONS in specialPermissionSet) {
if (osVersion >= Build.VERSION_CODES.TIRAMISU && targetSdkVersion >= Build.VERSION_CODES.TIRAMISU) {
// If we request POST_NOTIFICATIONS on TIRAMISU or above and targetSdkVersion >= TIRAMISU,
// We don't need to request specially, just request as normal permission.
specialPermissionSet.remove(PermissionX.permission.POST_NOTIFICATIONS)
normalPermissionSet.add(PermissionX.permission.POST_NOTIFICATIONS)
}
}
这里是不是应该是or?
PermissionMediator.kt
if (PermissionX.permission.POST_NOTIFICATIONS in specialPermissionSet) { if (osVersion >= Build.VERSION_CODES.TIRAMISU && targetSdkVersion >= Build.VERSION_CODES.TIRAMISU) { // If we request POST_NOTIFICATIONS on TIRAMISU or above and targetSdkVersion >= TIRAMISU, // We don't need to request specially, just request as normal permission. specialPermissionSet.remove(PermissionX.permission.POST_NOTIFICATIONS) normalPermissionSet.add(PermissionX.permission.POST_NOTIFICATIONS) } } 这里是不是应该是or?