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

当首页为Tablayout+Viewpager时,从其他fragment返回时无法加载视图 #807

Closed
VanXNF opened this issue Mar 20, 2018 · 4 comments · Fixed by #808
Closed

当首页为Tablayout+Viewpager时,从其他fragment返回时无法加载视图 #807

VanXNF opened this issue Mar 20, 2018 · 4 comments · Fixed by #808

Comments

@VanXNF
Copy link

VanXNF commented Mar 20, 2018

Issues Guideline

Following information can help us to resolve the issue faster.

  • Library version
  • Support-v4 version
  • Logs
  • Screenshots

In addition, we do not accept issues unrelated to Fragmentation.

您好,您的库给我带来了很大的帮助,十分感谢您的付出。但是,与此同时也发现了一个问题:
我的app结构基本如同您demo中demo_flow的结构,我的HomeFragment是一个TabLayout+ViewPager的情况,(基本结构如同您demo中的discoverFragment),我在其中联网加载图片,当我从homeFragment跳转到其他Fragment后再按back键返回或是从侧边栏返回后就会出现无法加载的情况。
代码的话我改动了您demo_flow中的discoverFragment下加载的子页面,并将discoverFragment设为默认启动的Fragment,模仿了一下我的情况,并上传在这个仓库中:https://github.com/VanXNF/Fragmentation-issues.git
同时在demo_flow文件夹下还有我生成的apk文件与问题展示录屏,方便您查看

compileSdkVersion 27
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support:recyclerview-v7:27.0.2'
implementation 'com.android.support:cardview-v7:27.0.2'
implementation 'me.yokeyword:fragmentation-core:1.3.2'
implementation 'me.yokeyword:eventbus-activity-scope:1.1.0'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.github.bumptech.glide:glide:4.6.1'

@YoKeyword
Copy link
Owner

@VanXNF 感谢反馈,发现是startPopTo()方法把Glide的SupportRequestManagerFragment给remove了,是一个BUG,今晚修复

@VanXNF
Copy link
Author

VanXNF commented Mar 20, 2018 via email

@YoKeyword
Copy link
Owner

@VanXNF 已修复 v1.3.3

@VanXNF
Copy link
Author

VanXNF commented Mar 20, 2018

非常感谢您的及时修复

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

Successfully merging a pull request may close this issue.

2 participants