zhihu / Matisse

:fireworks: A well-designed local image and video selector for Android
Apache License 2.0
12.52k stars 2.07k forks source link

选择图片列表显示空白 #876

Closed leviluo closed 1 year ago

leviluo commented 2 years ago

Screenshot_2022-04-18-13-40-50-310_tech nani www Screenshot_2022-04-18-13-40-54-055_tech nani www

明明有图片,左上角选择图片之后,为什么就显示空白了?

dalingge commented 2 years ago

是因为Fragment1.2.0 会等到退出动画、退出框架转换和退出 AndroidX 转换完成后再调用 onDestroyView()。

CCTV-11 commented 2 years ago

我也遇到这个问题,怎么解决的

as1006 commented 2 years ago

调试了一下,是时序问题。fragment1.1.0的时候,会先调用前一个MediaSelectionFragment的destroy,再调用后一个MediaSelectionFragment的create相关逻辑。在fragment后续的版本中不会。导致了这个问题,可以使用androidx.fragment:fragment1.1.0。但是这个组件有bug,要兼容。能不能早点升级

REBOOTERS commented 2 years ago

please try https://github.com/REBOOTERS/Matisse/releases

FrankLove commented 1 year ago

@REBOOTERS 0.5.3 it seems also have this bug

REBOOTERS commented 1 year ago

@REBOOTERS 0.5.3 it seems also have this bug

would you like to provide some details about the issue ,pls

FrankLove commented 1 year ago

@REBOOTERS sorry I don't use the source code to test, So can't provide details to you ,If you can test it with a demo,you will find this problem and see details ,if you can fix this bug we all hope to see it