Fix #9582
This commit is contained in:
parent
6ce4c12842
commit
598a16e71b
1 changed files with 7 additions and 6 deletions
|
@ -63,20 +63,21 @@ public class ParkingTypeBottomSheetDialogFragment extends MenuBottomSheetDialogF
|
||||||
if (plugin.isParkingEventAdded()) {
|
if (plugin.isParkingEventAdded()) {
|
||||||
plugin.showDeleteEventWarning(mapActivity);
|
plugin.showDeleteEventWarning(mapActivity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (limited) {
|
if (limited) {
|
||||||
plugin.setParkingPosition(latitude, longitude, true);
|
plugin.setParkingPosition(latitude, longitude, true);
|
||||||
plugin.showSetTimeLimitDialog(mapActivity, new Dialog(getContext()));
|
plugin.showSetTimeLimitDialog(mapActivity, new Dialog(mapActivity));
|
||||||
mapActivity.refreshMap();
|
|
||||||
} else {
|
} else {
|
||||||
plugin.addOrRemoveParkingEvent(false);
|
plugin.addOrRemoveParkingEvent(false);
|
||||||
plugin.setParkingPosition(latitude, longitude, false);
|
plugin.setParkingPosition(latitude, longitude, false);
|
||||||
plugin.showContextMenuIfNeeded(mapActivity, true);
|
|
||||||
|
|
||||||
mapActivity.refreshMap();
|
|
||||||
}
|
}
|
||||||
|
mapActivity.refreshMap();
|
||||||
mapActivity.getMyApplication().getFavorites().setSpecialPoint(
|
mapActivity.getMyApplication().getFavorites().setSpecialPoint(
|
||||||
plugin.getParkingPosition(), SpecialPointType.PARKING, null);
|
plugin.getParkingPosition(), SpecialPointType.PARKING, null);
|
||||||
|
if (!limited) {
|
||||||
|
plugin.showContextMenuIfNeeded(mapActivity, true);
|
||||||
|
}
|
||||||
|
dismiss();
|
||||||
}
|
}
|
||||||
dismiss();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue