From 51d0bd7013a31ea6f7f516b85f2f857b1ad77ba4 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Sat, 5 Aug 2017 12:01:48 +0300 Subject: [PATCH] Fix 26 api --- .../osmand/plus/measurementtool/MeasurementToolFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java index 52b63cc52b..1e1375926e 100644 --- a/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java +++ b/OsmAnd/src/net/osmand/plus/measurementtool/MeasurementToolFragment.java @@ -205,7 +205,7 @@ public class MeasurementToolFragment extends Fragment { private void saveAsGpxOnClick(MapActivity mapActivity) { final File dir = mapActivity.getMyApplication().getAppPath(IndexConstants.GPX_INDEX_DIR); - final LayoutInflater inflater = getLayoutInflater(); + final LayoutInflater inflater = mapActivity.getLayoutInflater(); final View view = inflater.inflate(R.layout.save_gpx_dialog, null); final EditText nameEt = (EditText) view.findViewById(R.id.gpx_name_et); final TextView fileExistsTv = (TextView) view.findViewById(R.id.file_exists_text_view);