android: navController pop logic

This commit is contained in:
刘涛 2020-07-20 14:15:32 +08:00 committed by osborn
parent f8d624d097
commit 414f25d8fd

View File

@ -99,8 +99,8 @@ public class DoricPanelFragment extends Fragment implements IDoricNavigator {
return;
}
NavController navController = getNavController();
if (navController != null && navController.popBackStack()) {
getActivity().finish();
if (navController != null && !navController.popBackStack()) {
getActivity().finish();
}
}