diff --git a/OsmAnd/res/drawable/fab_background_normal.xml b/OsmAnd/res/drawable/fab_background_normal.xml index 956991b2f5..f0d18849e5 100644 --- a/OsmAnd/res/drawable/fab_background_normal.xml +++ b/OsmAnd/res/drawable/fab_background_normal.xml @@ -14,7 +14,7 @@ android:insetRight="@dimen/map_button_inset_shadow" android:insetTop="@dimen/map_button_inset_shadow" > - + diff --git a/OsmAnd/res/drawable/fab_background_pressed.xml b/OsmAnd/res/drawable/fab_background_pressed.xml index 09ed741f00..481eb8c5bc 100644 --- a/OsmAnd/res/drawable/fab_background_pressed.xml +++ b/OsmAnd/res/drawable/fab_background_pressed.xml @@ -14,7 +14,7 @@ android:insetRight="@dimen/map_button_inset_shadow" android:insetTop="@dimen/map_button_inset_shadow" > - + diff --git a/OsmAnd/res/layout-land/share_menu_fragment.xml b/OsmAnd/res/layout-land/share_menu_fragment.xml index a9189eae1f..dc656a5e1e 100644 --- a/OsmAnd/res/layout-land/share_menu_fragment.xml +++ b/OsmAnd/res/layout-land/share_menu_fragment.xml @@ -24,7 +24,7 @@ android:layout_gravity="center_vertical" android:layout_marginLeft="16dp" android:layout_weight="1" - android:text="@string/share_menu_title" + android:text="@string/share_menu_location" android:textColor="?android:textColorSecondary" android:textSize="@dimen/default_list_text_size"/> diff --git a/OsmAnd/res/values-da/phrases.xml b/OsmAnd/res/values-da/phrases.xml index b245166840..267b259681 100644 --- a/OsmAnd/res/values-da/phrases.xml +++ b/OsmAnd/res/values-da/phrases.xml @@ -2266,4 +2266,25 @@ Type: krypt Type: pyramide +Civilisation: antik romersk + Civilisation: nuragherkulturen + Civilisation: etruskisk + Civilisation: forhistorisk + Civilisation: oldgræsk + Civilisation: romersk + Civilisation: byzantinsk + Civilisation: kinesiske dynastier + Civilisation: gammelegyptisk + Civilisation: celtic + Civilisation: vestlig romersk + Civilisation: mykensk + Civilisation: daker + Civilisation: herniker + Civilisation: græsk egyptisk + Civilisation: romersk og byzantinsk egyptisk + Civilisation: helladisk + Civilisation: kykladisk + Civilisation: minoisk + Civilisation: tiahuanacota + diff --git a/OsmAnd/res/values-da/strings.xml b/OsmAnd/res/values-da/strings.xml index b44f955a59..fbe2ae763d 100644 --- a/OsmAnd/res/values-da/strings.xml +++ b/OsmAnd/res/values-da/strings.xml @@ -2194,4 +2194,5 @@ Del placering Send Hej tomme fragment +Vælg hvor kortfilerne skal gemmes. diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java index 9ae671fd57..d9e9122f08 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MapContextMenuFragment.java @@ -193,7 +193,7 @@ public class MapContextMenuFragment extends Fragment { showOnMap(menu.getLatLon(), true, false); if (hasMoved) { - applyPosY(getViewY(), false); + applyPosY(getViewY(), false, false); } return true; } @@ -217,7 +217,7 @@ public class MapContextMenuFragment extends Fragment { hasMoved = true; float y = event.getY(); float newY = getViewY() + (y - dy); - setViewY((int) newY, false); + setViewY((int) newY, false, false); menuFullHeight = view.getHeight() - (int) newY + 10; if (!oldAndroid()) { @@ -246,13 +246,16 @@ public class MapContextMenuFragment extends Fragment { boolean needCloseMenu = false; + int oldMenuState = menu.getCurrentMenuState(); if (menuBottomViewHeight > 0 && slidingUp) { menu.slideUp(); } else if (slidingDown) { needCloseMenu = !menu.slideDown(); } + int newMenuState = menu.getCurrentMenuState(); + boolean needMapAdjust = oldMenuState != newMenuState && newMenuState != MenuController.MenuState.FULL_SCREEN; - applyPosY(currentY, needCloseMenu); + applyPosY(currentY, needCloseMenu, needMapAdjust); break; @@ -260,7 +263,7 @@ public class MapContextMenuFragment extends Fragment { return true; } - private void applyPosY(final int currentY, final boolean needCloseMenu) { + private void applyPosY(final int currentY, final boolean needCloseMenu, boolean needMapAdjust) { final int posY = getPosY(needCloseMenu); if (currentY != posY) { if (posY < currentY) { @@ -297,9 +300,11 @@ public class MapContextMenuFragment extends Fragment { .setInterpolator(new DecelerateInterpolator()) .start(); - adjustMapPosition(posY, true); + if (needMapAdjust) { + adjustMapPosition(posY, true); + } } else { - setViewY(posY, false); + setViewY(posY, false, needMapAdjust); updateMainViewLayout(posY); } } @@ -576,7 +581,7 @@ public class MapContextMenuFragment extends Fragment { } } - private void setViewY(int y, boolean animated) { + private void setViewY(int y, boolean animated, boolean adjustMapPos) { if (!oldAndroid()) { mainView.setY(y); fabView.setY(getFabY(y)); @@ -585,7 +590,9 @@ public class MapContextMenuFragment extends Fragment { fabView.setPadding(0, getFabY(y), 0, 0); } if (!customMapCenter) { - adjustMapPosition(y, animated); + if (adjustMapPos) { + adjustMapPosition(y, animated); + } } else { customMapCenter = false; } @@ -645,7 +652,7 @@ public class MapContextMenuFragment extends Fragment { private void doLayoutMenu() { final int posY = getPosY(); - setViewY(posY, true); + setViewY(posY, true, true); updateMainViewLayout(posY); } diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/details/ParkingPositionController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/details/ParkingPositionController.java index fcdecb9861..92f79b33df 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/details/ParkingPositionController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/details/ParkingPositionController.java @@ -2,16 +2,13 @@ package net.osmand.plus.mapcontextmenu.details; import android.graphics.drawable.Drawable; import android.os.Bundle; -import android.widget.ArrayAdapter; import net.osmand.data.LatLon; import net.osmand.data.PointDescription; -import net.osmand.plus.ContextMenuAdapter; import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandPlugin; import net.osmand.plus.R; import net.osmand.plus.activities.MapActivity; -import net.osmand.plus.activities.search.SearchHistoryFragment; import net.osmand.plus.mapcontextmenu.MenuController; import net.osmand.plus.parkingpoint.ParkingPositionPlugin; import net.osmand.util.Algorithms; @@ -76,7 +73,7 @@ public class ParkingPositionController extends MenuController { @Override public String getTitleButtonCaption() { - return getMapActivity().getText(R.string.osmand_parking_delete).toString(); + return getMapActivity().getString(R.string.osmand_parking_delete); } @Override