LuckSiege / LuckSiege/PictureSelector
关于13 细分权限的问题,以及决绝方案
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
13细分权限
可以在点击事件时,先请求权限,然后屏蔽,PictureSelector 内部的权限请求,
可以解决"部分图片"二次选择框
.setPermissionsInterceptListener(object : OnPermissionsInterceptListener {
override fun requestPermission(
fragment: Fragment?,
permissionArray: Array?,
call: OnRequestPermissionListener?
) {
call?.onCall(arrayOf(),true)
}
override fun hasPermissions(
fragment: Fragment?,
permissionArray: Array?
): Boolean {
return false
}
})
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing PictureSelector's permission request flow and the OnPermissionsInterceptListener entry point shown in the issue. Reproduce the partial-photo access case on Android, then verify that the internal request does not trigger a second selection dialog when the documented interception behavior is used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100