From 5268433887aa22d188041aa1e6209efc6cdb4f8f Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Fri, 28 Oct 2016 17:26:34 +0300 Subject: [PATCH] Fix crash - routes setting in conf map --- OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java index 28b7cb4c8f..dc0e2fd48e 100644 --- a/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java +++ b/OsmAnd/src/net/osmand/plus/dialogs/ConfigureMapMenu.java @@ -869,9 +869,7 @@ public class ConfigureMapMenu { final OsmandSettings.CommonPreference pref = activity.getMyApplication().getSettings() .getCustomRenderProperty(p.getAttrName()); - OsmandApplication app = activity.getMyApplication(); - - LayoutInflater inflater = (LayoutInflater) app.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + LayoutInflater inflater = activity.getLayoutInflater(); View spinnerView = inflater.inflate(R.layout.spinner_rule_layout, null); TextView title = (TextView) spinnerView.findViewById(R.id.title); final Spinner spinner = (Spinner) spinnerView.findViewById(R.id.spinner);