Remove unnecessary changes with timer

This commit is contained in:
Chumva 2019-04-08 15:16:23 +03:00
parent 550c8c5a50
commit b07846e0af

View file

@ -357,10 +357,10 @@ public class WaypointsFragment extends BaseOsmAndFragment implements ObservableS
@Override @Override
public void onPause() { public void onPause() {
super.onPause(); super.onPause();
cancelTimer();
MapActivity mapActivity = getMapActivity(); MapActivity mapActivity = getMapActivity();
if (mapActivity != null) { if (mapActivity != null) {
MapRouteInfoMenu.waypointsVisible = false; MapRouteInfoMenu.waypointsVisible = false;
cancelTimer();
mapActivity.getDashboard().getWaypointDialogHelper().removeHelperCallback(this); mapActivity.getDashboard().getWaypointDialogHelper().removeHelperCallback(this);
mapActivity.getMyApplication().getTargetPointsHelper().removeListener(onStateChangedListener); mapActivity.getMyApplication().getTargetPointsHelper().removeListener(onStateChangedListener);
if (!wasDrawerDisabled) { if (!wasDrawerDisabled) {