android:remove invalid null check

This commit is contained in:
刘涛 2020-07-20 12:02:13 +08:00 committed by osborn
parent 1de1fdeb47
commit f8d624d097

View File

@ -100,11 +100,9 @@ public class DoricPanelFragment extends Fragment implements IDoricNavigator {
} }
NavController navController = getNavController(); NavController navController = getNavController();
if (navController != null && navController.popBackStack()) { if (navController != null && navController.popBackStack()) {
if (getActivity() != null) {
getActivity().finish(); getActivity().finish();
} }
} }
}
@Nullable @Nullable
private NavController getNavController() { private NavController getNavController() {