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);