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

在相册中放大,再返回会闪退,点开单独的图片,返回也会闪退 #313

Open
itaustin opened this issue Sep 13, 2020 · 6 comments

Comments

@itaustin
Copy link

在相册中放大,再返回会闪退,点开单独的图片,返回也会闪退

@lyxxman
Copy link

lyxxman commented Apr 26, 2021

+1

@lyxxman
Copy link

lyxxman commented Apr 26, 2021

dd

在相册中放大,再返回会闪退,点开单独的图片,返回也会闪退

但是作者停止维护了

@lyxxman
Copy link

lyxxman commented May 7, 2021

我这边解决了,是loaderManager的一个bug

@shetingting6107
Copy link

我这边解决了,是loaderManager的一个bug

是怎么解决的,我也遇到了

@paladin0720
Copy link

该bug产生的原因是 ImageGridActivity 页面在预览页面返回的时候 触发了ImageDataSource 类中的 onLoadFinished 方法, 该方法的第一行代码 imageFolders.clear(); 会把原有的数据清空。

这块加个判断就可能用,我这边暂时没看到改动后有什么影响。

if (data.getPosition() == 0) {
imageFolders.clear();
}

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

5 participants