diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java index 34898f6d52..cb4492c4f4 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java @@ -550,7 +550,7 @@ public class MeasurementToolFragment extends BaseOsmAndFragment { private MapActivity getMapActivity() { Activity activity = getActivity(); if (activity instanceof MapActivity && !activity.isFinishing()) { - return (MapActivity) getActivity(); + return (MapActivity) activity; } return null; }