【发布时间】:2021-04-16 11:53:49
【问题描述】:
我尝试了activity?.finsish 之类的方法,但它关闭了整个应用程序。
这是我要完成片段的地方:
lifecycleScope.launch {
delay(2000)
findNavController().navigate(R.id.action_splashFragment_to_authenticationFragment)
// Here I want to finish my Fragment
}
还有其他解决方案吗?提前谢谢你
【问题讨论】:
标签: android android-studio kotlin android-fragments