Open littlezan opened 5 years ago
进一步定位到问题了,触发场景如下: 在进入到含viewpager的Activity中,初始化好viewpager的fragments后,viewpager.setCurrentItem(1)会出现该问题,如果viewpager.setCurrentItem(2)或者其它值都不会出现该问题。
遇到楼主一样的问题。
用viewpager2吧
刚测试 使用 viewpager2 也有同样的问题。。
我记得使用viewpager2是没有这个问题的
使用的是最新版本fragmentation:1.3.7 在ViewPager中,多个Fragment都触发了onSupportVisible。 背景:
问题:为什么AFragment回调onSupportVisible,此时AFragment是不可见状态,就算回调了onSupportVisible,为什么不触发onSupportInvisible呢?
问题2:当退出整个Activity之后,BFragment回调onSupportInvisible,AFragment没有回调onSupportInvisible,但是AFragment回调了onPause
具体日志:
前面2条日志为,进入Activity中,后面1条日志为退出activity