Fix review

This commit is contained in:
Dima-1 2020-07-20 12:05:25 +03:00
parent 08a4fb229f
commit 4d866d3c8f

View file

@ -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;
}