guolindev / PermissionX

An open source Android library that makes handling runtime permissions extremely easy.
Apache License 2.0
3.34k stars 386 forks source link

1.7.1版本 这里的代码逻辑跟注释逻辑不一致 #247

Open wwwangweiwei123 opened 11 months ago

wwwangweiwei123 commented 11 months ago

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?