android:fix naviator pop when stack is null,finish the activity
This commit is contained in:
parent
2225514921
commit
5e166de77b
@ -105,7 +105,11 @@ public class DoricPanelFragment extends Fragment implements IDoricNavigator {
|
||||
|
||||
@Override
|
||||
public void pop() {
|
||||
getNavController().popBackStack();
|
||||
if (!getNavController().popBackStack()) {
|
||||
if (getActivity() != null) {
|
||||
getActivity().finish();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private NavController getNavController() {
|
||||
|
Reference in New Issue
Block a user