You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2023. It is now read-only.
原因 : 是因为使用
navigate方法进行跳转到底部tab时 会对队列中的fragment标识进行判断 如果队列中有就不会在加进去 如果没有才会加进去 所有 只需要在跳转之前 使用navController.popBackStack();即可。NavController navController = ((NavHostFragment) requireParentFragment()).getNavController();navController.popBackStack();navController.navigate(R.id.navigation_dashboard);