Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
652d5a0d41
3 changed files with 17 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
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
|
||||
-->
|
||||
<string name="rendering_attr_whiteWaterSports_name">Whitewater sports</string>
|
||||
<string name="distance_farthest">Distance: farthest first</string>
|
||||
<string name="distance_nearest">Distance: nearest first</string>
|
||||
<string name="enter_lon">Enter longitude</string>
|
||||
|
|
|
@ -334,7 +334,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
|||
String key = e.getKey();
|
||||
String vl = e.getValue();
|
||||
|
||||
if (key.equals("image") || key.equals("mapillary")) {
|
||||
if (key.equals("image") || key.equals("mapillary") || key.equals("subway_region")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package net.osmand.plus.mapcontextmenu.controllers;
|
||||
|
||||
import android.graphics.drawable.Drawable;
|
||||
|
||||
import net.osmand.data.Amenity;
|
||||
import net.osmand.data.LatLon;
|
||||
import net.osmand.data.PointDescription;
|
||||
|
@ -29,6 +31,7 @@ import java.util.Collection;
|
|||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class AmenityMenuController extends MenuController {
|
||||
|
||||
|
@ -185,6 +188,18 @@ public class AmenityMenuController extends MenuController {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Drawable getRightIcon() {
|
||||
Map<String, String> addTypes = amenity.getAdditionalInfo();
|
||||
if (addTypes != null) {
|
||||
String region = addTypes.get("subway_region");
|
||||
if (region != null) {
|
||||
return RenderingIcons.getBigIcon(getMapActivity(), "subway_" + region);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private void processTransportStop() {
|
||||
routes = new ArrayList<>();
|
||||
List<TransportIndexRepository> reps = getMapActivity().getMyApplication()
|
||||
|
|
Loading…
Reference in a new issue