small refactoring
This commit is contained in:
parent
da6273d126
commit
8ff06d88c9
1 changed files with 5 additions and 3 deletions
|
@ -545,9 +545,11 @@ public class RouteOptionsBottomSheet extends MenuBottomSheetDialogFragment {
|
|||
public void onClick(View view) {
|
||||
dismiss();
|
||||
|
||||
Fragment fragment = getTargetFragment();
|
||||
if (fragment instanceof MeasurementToolFragment) {
|
||||
((MeasurementToolFragment) fragment).getOnBackPressedCallback().setEnabled(false);
|
||||
if (dialogMode == DialogMode.PLAN_ROUTE) {
|
||||
Fragment fragment = getTargetFragment();
|
||||
if (fragment instanceof MeasurementToolFragment) {
|
||||
((MeasurementToolFragment) fragment).getOnBackPressedCallback().setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
Bundle args = new Bundle();
|
||||
|
|
Loading…
Reference in a new issue