diff --git a/OsmAnd-java/src/net/osmand/data/Amenity.java b/OsmAnd-java/src/net/osmand/data/Amenity.java index 42e27d6106..5094c698b1 100644 --- a/OsmAnd-java/src/net/osmand/data/Amenity.java +++ b/OsmAnd-java/src/net/osmand/data/Amenity.java @@ -1,5 +1,9 @@ package net.osmand.data; +import net.osmand.Location; +import net.osmand.osm.PoiCategory; +import net.osmand.util.Algorithms; + import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.IOException; @@ -13,10 +17,6 @@ import java.util.Map; import java.util.Map.Entry; import java.util.zip.GZIPInputStream; -import net.osmand.Location; -import net.osmand.osm.PoiCategory; -import net.osmand.util.Algorithms; - public class Amenity extends MapObject { @@ -28,7 +28,7 @@ public class Amenity extends MapObject { private static final long serialVersionUID = 132083949926339552L; private String subType; - private PoiCategory type; + private transient PoiCategory type; // duplicate for fast access private String openingHours; private Map additionalInfo; diff --git a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java index 88a1be0aff..e830d3cc21 100644 --- a/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java +++ b/OsmAnd-java/src/net/osmand/util/OpeningHoursParser.java @@ -2,6 +2,7 @@ package net.osmand.util; /* Can be commented out in order to run the main function separately */ +import java.io.Serializable; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; @@ -199,7 +200,7 @@ public class OpeningHoursParser { * This implementation only supports month, day of weeks and numeral times, or the value "off" * */ - public static class BasicOpeningHourRule implements OpeningHoursRule { + public static class BasicOpeningHourRule implements OpeningHoursRule, Serializable { /** * represents the list on which days it is open. * Day number 0 is MONDAY diff --git a/OsmAnd/res/drawable-hdpi/ic_action_label.png b/OsmAnd/res/drawable-hdpi/ic_action_label.png new file mode 100755 index 0000000000..222387bdba Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_action_label.png differ diff --git a/OsmAnd/res/drawable-mdpi/ic_action_label.png b/OsmAnd/res/drawable-mdpi/ic_action_label.png new file mode 100755 index 0000000000..f94bf51d4f Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/ic_action_label.png differ diff --git a/OsmAnd/res/drawable-xhdpi/ic_action_label.png b/OsmAnd/res/drawable-xhdpi/ic_action_label.png new file mode 100755 index 0000000000..d95d59f624 Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/ic_action_label.png differ diff --git a/OsmAnd/res/drawable-xxhdpi/ic_action_label.png b/OsmAnd/res/drawable-xxhdpi/ic_action_label.png new file mode 100755 index 0000000000..77d2843382 Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/ic_action_label.png differ diff --git a/OsmAnd/res/layout/fragment_edit_poi.xml b/OsmAnd/res/layout/fragment_edit_poi.xml index 4973836569..15f10cc0bc 100644 --- a/OsmAnd/res/layout/fragment_edit_poi.xml +++ b/OsmAnd/res/layout/fragment_edit_poi.xml @@ -1,91 +1,142 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:layout_weight="1" + android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +