diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index c2441b85ee..dc3b7be809 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -9,6 +9,8 @@ 3. All your modified/created strings are in the top of the file (to make easier find what\'s translated). PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy --> + Marker moved to History + Marker moved to Active List Groups Passed: %1$s diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java index 761dcb24f9..3fd44c7534 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/MapMarkersHistoryFragment.java @@ -146,13 +146,16 @@ public class MapMarkersHistoryFragment extends Fragment implements MapMarkersHel Object item = adapter.getItem(pos); if (item instanceof MapMarker) { final MapMarker marker = (MapMarker) item; + int snackbarStringRes; if (direction == ItemTouchHelper.LEFT) { app.getMapMarkersHelper().restoreMarkerFromHistory((MapMarker) item, 0); + snackbarStringRes = R.string.marker_moved_to_active; } else { app.getMapMarkersHelper().removeMarkerFromHistory((MapMarker) item); + snackbarStringRes = R.string.item_removed; } adapter.notifyItemRemoved(pos); - snackbar = Snackbar.make(viewHolder.itemView, R.string.item_removed, Snackbar.LENGTH_LONG) + snackbar = Snackbar.make(viewHolder.itemView, snackbarStringRes, Snackbar.LENGTH_LONG) .setAction(R.string.shared_string_undo, new View.OnClickListener() { @Override public void onClick(View view) { diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java index 996bc4de8e..8446d3e132 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/adapters/MapMarkersActiveAdapter.java @@ -158,7 +158,7 @@ public class MapMarkersActiveAdapter extends RecyclerView.Adapter