Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小米12 Android14 无图 #2927

Open
final00000000 opened this issue Aug 3, 2024 · 1 comment
Open

小米12 Android14 无图 #2927

final00000000 opened this issue Aug 3, 2024 · 1 comment

Comments

@final00000000
Copy link

Current use version?

当前使用的版本是多少?

3.11.2

Will this problem occur in demo?

Demo能否复现这问题?

未复现

Describe the problem or provide an error log?

描述问题或提供错误log?

我在图库选择之前自己申请了权限
我自定义权限拦截器 只是在hasPermissions返回了true Android14存储权限时允许部分选择,进入到相册库时也是无图状态 请问是哪里出错了吗

如果不重写权限拦截器,我自己做了权限校验,选择部分图片权限时,会跳出两个系统选择图片弹窗
@final00000000
Copy link
Author

已解决,我的疏忽

class PictureSelectorInterceptor: OnPermissionsInterceptListener {
    override fun requestPermission(
        fragment: Fragment?, permissionArray: Array<out String>?, call: OnRequestPermissionListener?
    ) {
        call?.onCall(permissionArray,true)
    }

    override fun hasPermissions(fragment: Fragment?, permissionArray: Array<out String>?): Boolean {
        return true
    }

}

requestPermission也要回调

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant