Context menu - fix wikipedia

This commit is contained in:
Alexey Kulish 2015-09-27 19:56:33 +03:00
parent a87f330b9a
commit ca48ed8a2a
2 changed files with 1 additions and 5 deletions

View file

@ -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;
} }
} }

View file

@ -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;