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

专辑列表返回数据为空 #2910

Closed
SuperTan opened this issue Jun 26, 2024 · 1 comment
Closed

专辑列表返回数据为空 #2910

SuperTan opened this issue Jun 26, 2024 · 1 comment

Comments

@SuperTan
Copy link

Current use version?

当前使用的版本是多少?

v3.11.2

Will this problem occur in demo?

Demo能否复现这问题?

demo未使用改方法
PictureSelector.create(mActivity)
            .dataSource(SelectMimeType.ofVideo())
            .obtainAlbumData

Describe the problem or provide an error log?

描述问题或提供错误log?

4、单独获取数据源

(1)、专辑列表
PictureSelector.create(this)
    .dataSource(SelectMimeType.ofAll())
    .obtainAlbumData(new OnQueryDataSourceListener<LocalMediaFolder>() {
        @Override
        public void onComplete(List<LocalMediaFolder> result) {

        }
   );
当获取图片时SelectMimeType.ofImage() 可以拿到专辑数据

当获取图片时SelectMimeType.ofVideo()   不能可以拿到专辑数据
@SuperTan
Copy link
Author

后来测试发现,是因为没有添加android.permission.READ_MEDIA_VISUAL_USER_SELECTED权限导致的

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