Merge pull request #8850 from osmandapp/Fix_map_source_name
Fix edit map source name
This commit is contained in:
commit
d8e1e4b3ec
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue