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
public void onPause() {
super.onPause();
cancelTimer();
MapActivity mapActivity = getMapActivity();
if (mapActivity != null) {
MapRouteInfoMenu.waypointsVisible = false;
cancelTimer();
mapActivity.getDashboard().getWaypointDialogHelper().removeHelperCallback(this);
mapActivity.getMyApplication().getTargetPointsHelper().removeListener(onStateChangedListener);
if (!wasDrawerDisabled) {