Seya
Seya
然后导致子fragment的onSupportVisible()不回调了
作者你好 VisibleDelegate里的方法 isParentInvisible(),其中 !fragment.isSupportVisible()改为!fragment.getSupportDelegate().isSupportVisible()就可以执行到。。 private boolean isParentInvisible() { ISupportFragment fragment = (ISupportFragment) mFragment.getParentFragment(); return fragment != null && !/*fragment.isSupportVisible()*/fragment.getSupportDelegate().isSupportVisible(); }
@liaolintao 你页面多了的时候打断点跟一下就会发现,原本是true的fragment.isSupportVisible()得到的是false,fragment.getSupportDelegate().isSupportVisible()这个值里面得到的就是你想要的结果。开始我也一直以为是同一个,但是赋值也就那么几个地方,却出现了这问题。
@Simon1121 我一开始也认同是同一个,根据源码看怎么都是同一个,断点跟也是同一个,但是Fragment嵌套过多的时候就会出现这情况,但是你会发现原本那个值自己知道是true的,fragment.isSupportVisible()这个得到是false,fragment.getSupportDelegate().isSupportVisible()这个得到是true,很是奇怪。
@longerian 那有没有就刷新单个Adapter的呢?
> minitex 吗?minitex 还不支持 WidgetSpan 这个现在有解决方案吗?
> 用了这个插件在git pull的时候,会出现这个错误,禁用这个插件后,就不会,现在如果用了这个插件,需要先disabled之后再git pull 找到插件把Enable auto-detection 反选掉,就可以了
@PonyCui 关于这个有办法解决吗?小程序配置的 "resizable": true, "pageOrientation": "auto"。页面会随着开启屏幕旋转而旋转,但是页面旋转后页面相当于是竖屏等比放大到了横屏上。
[awesome_project_minitex.zip](https://github.com/user-attachments/files/19503287/awesome_project_minitex.zip)