Fix category
This commit is contained in:
parent
fd53cefc1b
commit
ccda609fa9
1 changed files with 5 additions and 7 deletions
|
@ -11,8 +11,6 @@ import android.widget.ImageButton;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import net.osmand.osm.edit.Node;
|
|
||||||
import net.osmand.osm.edit.OSMSettings;
|
|
||||||
import net.osmand.plus.OsmandApplication;
|
import net.osmand.plus.OsmandApplication;
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.render.RenderingIcons;
|
import net.osmand.plus.render.RenderingIcons;
|
||||||
|
@ -159,9 +157,9 @@ public class OsmEditsAdapter extends ArrayAdapter<OsmPoint> {
|
||||||
action = getContext().getString(R.string.shared_string_edited);
|
action = getContext().getString(R.string.shared_string_edited);
|
||||||
}
|
}
|
||||||
|
|
||||||
String subtype = "";
|
String category = "";
|
||||||
if (point.getGroup() == OsmPoint.Group.POI && !Algorithms.isEmpty(((OpenstreetmapPoint) point).getSubtype())) {
|
if (point.getGroup() == OsmPoint.Group.POI) {
|
||||||
subtype = ((OpenstreetmapPoint) point).getSubtype();
|
category = ((OpenstreetmapPoint) point).getEntity().getTag(EditPoiData.POI_TYPE_TAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
String prefix = OsmEditingPlugin.getPrefix(point);
|
String prefix = OsmEditingPlugin.getPrefix(point);
|
||||||
|
@ -170,8 +168,8 @@ public class OsmEditsAdapter extends ArrayAdapter<OsmPoint> {
|
||||||
if (!Algorithms.isEmpty(action)) {
|
if (!Algorithms.isEmpty(action)) {
|
||||||
description += action + " • ";
|
description += action + " • ";
|
||||||
}
|
}
|
||||||
if (!Algorithms.isEmpty(subtype)) {
|
if (!Algorithms.isEmpty(category)) {
|
||||||
description += subtype + " • ";
|
description += category + " • ";
|
||||||
}
|
}
|
||||||
description += prefix;
|
description += prefix;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue