Context menu - fix wikipedia
This commit is contained in:
parent
a87f330b9a
commit
ca48ed8a2a
2 changed files with 1 additions and 5 deletions
|
@ -119,7 +119,7 @@ public class MapContextMenu {
|
||||||
Amenity a = (Amenity) object;
|
Amenity a = (Amenity) object;
|
||||||
if (a.getSubType() != null && a.getType() != null) {
|
if (a.getSubType() != null && a.getType() != null) {
|
||||||
PoiType pt = a.getType().getPoiTypeByKeyName(a.getSubType());
|
PoiType pt = a.getType().getPoiTypeByKeyName(a.getSubType());
|
||||||
if (pt != null && pt.getOsmTag().equals("place")) {
|
if (pt != null && pt.getOsmTag() != null && pt.getOsmTag().equals("place")) {
|
||||||
res = false;
|
res = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,7 @@ import android.content.DialogInterface;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.graphics.PorterDuff;
|
import android.graphics.PorterDuff;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
import net.osmand.access.AccessibleToast;
|
|
||||||
import net.osmand.data.FavouritePoint;
|
import net.osmand.data.FavouritePoint;
|
||||||
import net.osmand.plus.FavouritesDbHelper;
|
import net.osmand.plus.FavouritesDbHelper;
|
||||||
import net.osmand.plus.OsmandApplication;
|
import net.osmand.plus.OsmandApplication;
|
||||||
|
@ -16,8 +14,6 @@ import net.osmand.plus.R;
|
||||||
import net.osmand.plus.activities.MapActivity;
|
import net.osmand.plus.activities.MapActivity;
|
||||||
import net.osmand.plus.base.FavoriteImageDrawable;
|
import net.osmand.plus.base.FavoriteImageDrawable;
|
||||||
|
|
||||||
import java.text.MessageFormat;
|
|
||||||
|
|
||||||
public class FavoritePointEditorFragment extends PointEditorFragment {
|
public class FavoritePointEditorFragment extends PointEditorFragment {
|
||||||
|
|
||||||
private FavoritePointEditor editor;
|
private FavoritePointEditor editor;
|
||||||
|
|
Loading…
Reference in a new issue