From b07846e0afec86e8c643d7214740c1412d275dce Mon Sep 17 00:00:00 2001 From: Chumva Date: Mon, 8 Apr 2019 15:16:23 +0300 Subject: [PATCH] Remove unnecessary changes with timer --- .../net/osmand/plus/routepreparationmenu/WaypointsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/WaypointsFragment.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/WaypointsFragment.java index 8066b728ef..e83f6c841a 100644 --- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/WaypointsFragment.java +++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/WaypointsFragment.java @@ -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) {