Closed wangzhongITger closed 3 years ago
感谢反馈,我收到这个问题之后第一时间进行了复现,确实有这个问题,但是很遗憾地告诉你,这个内存泄漏不是框架导致的,从泄漏的堆栈来看,没有看到和框架有关的代码。
嗯嗯,是这样的
override fun onBackPressed() { // https://issuetracker.google.com/issues/139738913 if (Build.VERSION.SDK_INT == Build.VERSION_CODES.Q && isTaskRoot && (supportFragmentManager.primaryNavigationFragment?.childFragmentManager?.backStackEntryCount ?: 0) == 0 && supportFragmentManager.backStackEntryCount == 0 ) { finishAfterTransition() } else { super.onBackPressed() } }