From 849de7b7076b3438defc51b3ab36622d5bc2d277 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Tue, 28 Apr 2020 13:48:29 +0300 Subject: [PATCH] Fix edit map source name --- .../net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java index 0d2c996d1f..c64bc6b475 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java @@ -496,8 +496,6 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin { AlertDialog.Builder bld = new AlertDialog.Builder(new ContextThemeWrapper(activity, getThemeRes(activity, app))); View view = UiUtilities.getInflater(activity, isNightMode(activity, app)).inflate(R.layout.editing_tile_source, null); final EditText name = (EditText) view.findViewById(R.id.Name); - name.setFocusable(false); - name.setFocusableInTouchMode(false); final Spinner existing = (Spinner) view.findViewById(R.id.TileSourceSpinner); final TextView existingHint = (TextView) view.findViewById(R.id.TileSourceHint); final EditText urlToLoad = (EditText) view.findViewById(R.id.URLToLoad); @@ -521,6 +519,8 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin { existing.setAdapter(adapter); TileSourceTemplate template; if (editedLayerName != null) { + name.setFocusable(false); + name.setFocusableInTouchMode(false); if (!editedLayerName.endsWith(IndexConstants.SQLITE_EXT)) { File f = ((OsmandApplication) activity.getApplication()).getAppPath( IndexConstants.TILES_INDEX_DIR + editedLayerName);