Skip to content

Viewpager快速切换时生命周期错乱. Fragment丢失onSupportInvisible#37

Open
luckydzp wants to merge 3 commits intoJantHsueh:androidxfrom
luckydzp:androidx
Open

Viewpager快速切换时生命周期错乱. Fragment丢失onSupportInvisible#37
luckydzp wants to merge 3 commits intoJantHsueh:androidxfrom
luckydzp:androidx

Conversation

@luckydzp
Copy link
Copy Markdown

解决以下bug:
luckydzp 修改 解决viewpager快速切换导致生命周期失效的问题
快速切换可能出现以下情况
fragment的visible逻辑在线程队列中还未执行 ,此时Viewpager调用fragment的invisible逻辑不成功(因fragment还未visible)
此后当fragment的visible成功后, 配对的invisible已经错失

Viewpager快速切换时生命周期错乱. Fragment丢失onSupportInvisible

daizhipeng修改 解决viewpager快速切换导致生命周失效的问题
快速切换可以出现以下情况
page在的visible逻辑在队列中还未执行,此时调用page的invisible逻辑不成功(因page还未visible)
此时page visible成功后,配对的invisible已经错失
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 this pull request may close these issues.

1 participant