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

打开多个相册选择器问题 #2426

Closed
9ikj opened this issue Jul 20, 2022 · 0 comments
Closed

打开多个相册选择器问题 #2426

9ikj opened this issue Jul 20, 2022 · 0 comments

Comments

@9ikj
Copy link

9ikj commented Jul 20, 2022

Current use version?

当前使用的版本是多少?

3.10.5

Will this problem occur in demo?

Demo能否复现这问题?


Describe the problem or provide an error log?

描述问题或提供错误log?

使用相册选择器使用setPreviewInterceptListener打开一个activity后,在activity打开另一个相册选择器,然后退出到第一个选择器会出现相册列表不正常,点击图片会出现崩溃

binding.test1.setOnClickListener {

            PictureSelector.create(this)
                .openGallery(SelectMimeType.ofImage())
                .isDisplayCamera(false)
                .setImageEngine(GlideEngine.createGlideEngine())
                .setSelectionMode(SelectModeConfig.MULTIPLE)
                .isFastSlidingSelect(true)
                .setPreviewInterceptListener { context, position, totalNum, page, currentBucketId, currentAlbumName, isShowCamera, data, isBottomPreview ->
                    val intent = Intent(this,MainActivity::class.java)
                    startActivity(intent)
                }
                .setMaxSelectNum(99)
                .setMinSelectNum(1)
                .forResult(object : OnResultCallbackListener<LocalMedia> {
                    override fun onResult(result: ArrayList<LocalMedia>?) {

                    }

                    override fun onCancel() {

                    }
                })
        }


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

2 participants