Blankj/AndroidUtilCode
Ver no GitHubFragmentUtils 增加 fragmentTransaction.setMaxLifecycle 支持
Open
#1.540 aberto em 6 de set. de 2021
help wanted
Métricas do repositório
- Stars
- (33.679 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Androidx Fragment 通过Add() Hide() 方式实现懒加载
在调用 add 或 show 方法后,setMaxLifecycle(showFragment, Lifecycle.State.RESUMED)
在调用 hide 方法后,setMaxLifecycle(fragment, Lifecycle.State.STARTED)
建议 增加fragmentTransaction.setMaxLifecycle 支持