diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml
index d83d314cfa..8bfb7b6e1a 100644
--- a/OsmAnd/res/values/styles.xml
+++ b/OsmAnd/res/values/styles.xml
@@ -114,7 +114,7 @@
- @style/OsmandLightTheme.DarkActionbar
- @style/OsmandLightTheme.Toolbar
- @style/OsmandLightTheme.NewAppTheme
- - @color/icon_color
+ - @color/dashboard_black
- @color/map_widget_blue
@@ -196,7 +196,7 @@
- @style/OsmandDarkTheme.DarkActionbar
- @style/OsmandDarkTheme
- @style/OsmandDarkTheme
- - @color/dash_search_icon_dark
+ - @color/map_widget_light
- @color/osmand_orange
diff --git a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java
index a83f40831d..d92a96d32b 100644
--- a/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java
+++ b/OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java
@@ -36,7 +36,6 @@ import net.osmand.util.Algorithms;
import org.apache.commons.logging.Log;
-import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
@@ -103,7 +102,7 @@ public class AdvancedDataFragment extends Fragment
mTagsChangedListener = new EditPoiData.TagsChangedListener() {
@Override
public void onTagsChanged(String anyTag) {
- LOG.debug("onTagsChanged()");
+ LOG.debug("onTagsChanged(" + "anyTag=" + anyTag + ")");
final String value = getData().getTagValues().get(anyTag);
if (Algorithms.objectEquals(anyTag, OSMSettings.OSMTagKey.NAME.getValue())) {
nameTextView.setText(value);
@@ -154,7 +153,6 @@ public class AdvancedDataFragment extends Fragment
private final Map allTypes;
private final HashSet tagKeys;
private final HashSet valueKeys;
- private final HashMap cachedViews = new HashMap<>();
public TagAdapterLinearLayoutHack(LinearLayout linearLayout,
EditPoiData editPoiData,
@@ -181,7 +179,7 @@ public class AdvancedDataFragment extends Fragment
linearLayout.removeAllViews();
editPoiData.setIsInEdit(true);
for (Entry tag : editPoiData.getTagValues().entrySet()) {
- if(tag.getKey().equals(EditPoiData.POI_TYPE_TAG)
+ if (tag.getKey().equals(EditPoiData.POI_TYPE_TAG)
|| tag.getKey().equals(OSMSettings.OSMTagKey.NAME.getValue()))
continue;
addTagView(tag.getKey(), tag.getValue());
@@ -191,17 +189,13 @@ public class AdvancedDataFragment extends Fragment
public void addTagView(String tg, String vl) {
View view = getView(tg, vl);
+ LOG.debug("tg=" + tg + "; view=" + view);
linearLayout.addView(view);
}
private View getView(String tg, String vl) {
- View convertView = cachedViews.get(tg);
- LOG.debug("convertView=" + convertView);
- if (convertView == null) {
- convertView = LayoutInflater.from(linearLayout.getContext())
- .inflate(R.layout.poi_tag_list_item, null, false);
- cachedViews.put(tg, convertView);
- }
+ View convertView = LayoutInflater.from(linearLayout.getContext())
+ .inflate(R.layout.poi_tag_list_item, null, false);
final AutoCompleteTextView tagEditText =
(AutoCompleteTextView) convertView.findViewById(R.id.tagEditText);
ImageButton deleteItemImageButton =