diff --git a/OsmAnd-java/src/net/osmand/map/OsmandRegions.java b/OsmAnd-java/src/net/osmand/map/OsmandRegions.java index cb5db953c6..8d6ee064d4 100644 --- a/OsmAnd-java/src/net/osmand/map/OsmandRegions.java +++ b/OsmAnd-java/src/net/osmand/map/OsmandRegions.java @@ -97,19 +97,35 @@ public class OsmandRegions { } private String getLang(BinaryMapDataObject o) { - return o.getNameByType(langType); + if (langType != null) { + return o.getNameByType(langType); + } else { + return null; + } } private String getMetric(BinaryMapDataObject o) { - return o.getNameByType(metricType); + if (metricType != null) { + return o.getNameByType(metricType); + } else { + return null; + } } private String getLeftHandDriving(BinaryMapDataObject o) { - return o.getNameByType(leftHandDrivingType); + if (leftHandDrivingType != null) { + return o.getNameByType(leftHandDrivingType); + } else { + return null; + } } private String getRoadSigns(BinaryMapDataObject o) { - return o.getNameByType(roadSignsType); + if (roadSignsType != null) { + return o.getNameByType(roadSignsType); + } else { + return null; + } } public String getDownloadName(BinaryMapDataObject o) { diff --git a/OsmAnd/res/drawable-hdpi/bg_contextmenu_shadow_right_light.9.png b/OsmAnd/res/drawable-hdpi/bg_contextmenu_shadow_right_light.9.png new file mode 100644 index 0000000000..ced925cc93 Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/bg_contextmenu_shadow_right_light.9.png differ diff --git a/OsmAnd/res/drawable-hdpi/bg_contextmenu_shadow_top_light.9.png b/OsmAnd/res/drawable-hdpi/bg_contextmenu_shadow_top_light.9.png new file mode 100644 index 0000000000..8e5d32f5cd Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/bg_contextmenu_shadow_top_light.9.png differ diff --git a/OsmAnd/res/drawable-hdpi/ic_action_ruler.png b/OsmAnd/res/drawable-hdpi/ic_action_ruler.png new file mode 100644 index 0000000000..947cbef786 Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_action_ruler.png differ diff --git a/OsmAnd/res/drawable-mdpi/bg_contextmenu_shadow_right_light.9.png b/OsmAnd/res/drawable-mdpi/bg_contextmenu_shadow_right_light.9.png new file mode 100644 index 0000000000..01e901982a Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/bg_contextmenu_shadow_right_light.9.png differ diff --git a/OsmAnd/res/drawable-mdpi/bg_contextmenu_shadow_top_light.9.png b/OsmAnd/res/drawable-mdpi/bg_contextmenu_shadow_top_light.9.png new file mode 100644 index 0000000000..84d1884c71 Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/bg_contextmenu_shadow_top_light.9.png differ diff --git a/OsmAnd/res/drawable-mdpi/ic_action_ruler.png b/OsmAnd/res/drawable-mdpi/ic_action_ruler.png new file mode 100644 index 0000000000..54f82daeed Binary files /dev/null and b/OsmAnd/res/drawable-mdpi/ic_action_ruler.png differ diff --git a/OsmAnd/res/drawable-xhdpi/bg_contextmenu_shadow_right_light.9.png b/OsmAnd/res/drawable-xhdpi/bg_contextmenu_shadow_right_light.9.png new file mode 100644 index 0000000000..8ae4fc96fe Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/bg_contextmenu_shadow_right_light.9.png differ diff --git a/OsmAnd/res/drawable-xhdpi/bg_contextmenu_shadow_top_light.9.png b/OsmAnd/res/drawable-xhdpi/bg_contextmenu_shadow_top_light.9.png new file mode 100644 index 0000000000..2ce218b6e1 Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/bg_contextmenu_shadow_top_light.9.png differ diff --git a/OsmAnd/res/drawable-xhdpi/ic_action_ruler.png b/OsmAnd/res/drawable-xhdpi/ic_action_ruler.png new file mode 100644 index 0000000000..d1a65048ba Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/ic_action_ruler.png differ diff --git a/OsmAnd/res/drawable-xxhdpi/bg_contextmenu_shadow_right_light.9.png b/OsmAnd/res/drawable-xxhdpi/bg_contextmenu_shadow_right_light.9.png new file mode 100644 index 0000000000..e5bb4a1123 Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/bg_contextmenu_shadow_right_light.9.png differ diff --git a/OsmAnd/res/drawable-xxhdpi/bg_contextmenu_shadow_top_light.9.png b/OsmAnd/res/drawable-xxhdpi/bg_contextmenu_shadow_top_light.9.png new file mode 100644 index 0000000000..d88af5d8a5 Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/bg_contextmenu_shadow_top_light.9.png differ diff --git a/OsmAnd/res/drawable-xxhdpi/ic_action_ruler.png b/OsmAnd/res/drawable-xxhdpi/ic_action_ruler.png new file mode 100644 index 0000000000..9a51090661 Binary files /dev/null and b/OsmAnd/res/drawable-xxhdpi/ic_action_ruler.png differ diff --git a/OsmAnd/res/drawable/bg_bottom_menu_dark.xml b/OsmAnd/res/drawable/bg_bottom_menu_dark.xml new file mode 100644 index 0000000000..da3897aaf9 --- /dev/null +++ b/OsmAnd/res/drawable/bg_bottom_menu_dark.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_bottom_menu_light.xml b/OsmAnd/res/drawable/bg_bottom_menu_light.xml new file mode 100644 index 0000000000..14afe84331 --- /dev/null +++ b/OsmAnd/res/drawable/bg_bottom_menu_light.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_left_menu_dark.xml b/OsmAnd/res/drawable/bg_left_menu_dark.xml new file mode 100644 index 0000000000..6300bc82a3 --- /dev/null +++ b/OsmAnd/res/drawable/bg_left_menu_dark.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_left_menu_light.xml b/OsmAnd/res/drawable/bg_left_menu_light.xml new file mode 100644 index 0000000000..9edc174531 --- /dev/null +++ b/OsmAnd/res/drawable/bg_left_menu_light.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout-land/point_editor_fragment.xml b/OsmAnd/res/layout-land/point_editor_fragment.xml new file mode 100644 index 0000000000..82eaecb526 --- /dev/null +++ b/OsmAnd/res/layout-land/point_editor_fragment.xml @@ -0,0 +1,256 @@ + + + + + + + + + + +