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

androidx setDefaultCallback后设置空页面不成功 #133

Open
KarenKaKa opened this issue Jun 15, 2020 · 5 comments
Open

androidx setDefaultCallback后设置空页面不成功 #133

KarenKaKa opened this issue Jun 15, 2020 · 5 comments

Comments

@KarenKaKa
Copy link

首先,旧版本用的很顺。
Androidx后在application中设置了setDefaultCallback,然后在fragment中初始化LoadSir,并设置显示空页面,结果是并不会显示空页面,而是空页面一闪而过显示DefaultCallback

@KingJA
Copy link
Owner

KingJA commented Jun 15, 2020

@KarenKaKa 你好,可以下载Demo运行下,然后尝试修改下参数,你说的场景类似:https://github.com/KingJA/LoadSir/blob/v1.3.8/app/src/main/java/sample/kingja/loadsir/target/NormalFragment.java
升级后,1.3.8的内部逻辑和1.3.6略有不通过,最好参考demo类似场景配置

@ppg408331701
Copy link

我也遇到这个问题,androidx的fragment中的 onresume后调用showloading,但是会一闪而过出现setDefaultCallback的页面
但是如果我延时50ms在调用showloading的话就不会出现这个问题,我还以是不是内部的存在延时执行导致覆盖了我在onresume中的操作

@ppg408331701
Copy link

我试验了一下,1.3.6版本是正常的
但是1.3.8版本必须延时才行。

目前只能退回1.3.6了。每个页面都延时请求太麻烦了

@M45ter
Copy link

M45ter commented Oct 14, 2020

这个bug还没人修复吗?

@zccguagua
Copy link

同样问题,要延迟才能显示

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