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,7 +99,7 @@ public class DoricPanelFragment extends Fragment implements IDoricNavigator {
return; return;
} }
NavController navController = getNavController(); NavController navController = getNavController();
if (navController != null && navController.popBackStack()) { if (navController != null && !navController.popBackStack()) {
getActivity().finish(); getActivity().finish();
} }
} }