[fragment 内存泄漏]
This commit is contained in:
yangyakun
2024-04-26 19:21:23 +08:00
parent fd5ec5750a
commit e9f4da7389
24 changed files with 193 additions and 72 deletions

View File

@@ -160,7 +160,7 @@ abstract class FacadeProvider : IMoGoFunctionProvider, ILoginCallback {
val fragment = getFragment()
injectStatusBar()
d(TAG, "切换 fragment:${fragment}")
LoginStatusManager.resetFragment()
if (supportFragmentManager != null) {
val back = supportFragmentManager.beginTransaction()
back.replace(containerId, fragment, fragment.tag)