This commit is contained in:
simon 2020-10-08 10:03:58 +03:00
parent 0fdc58960a
commit 4eae0ee60a
3 changed files with 8 additions and 8 deletions

View file

@ -21,9 +21,9 @@ public class IPFSImageCard extends ImageCard {
} catch (JSONException e) {
LOG.error(e);
}
this.url = BASE_URL + cid;
this.imageHiresUrl = BASE_URL + cid;
this.imageUrl = BASE_URL + cid;
url = BASE_URL + cid;
imageHiresUrl = BASE_URL + cid;
imageUrl = BASE_URL + cid;
if (!Algorithms.isEmpty(getUrl())) {
View.OnClickListener onClickListener = new View.OnClickListener() {
@Override
@ -34,7 +34,7 @@ public class IPFSImageCard extends ImageCard {
}
};
if (!Algorithms.isEmpty(buttonText)) {
this.onButtonClickListener = onClickListener;
onButtonClickListener = onClickListener;
} else {
this.onClickListener = onClickListener;
}

View file

@ -442,7 +442,7 @@ public abstract class ImageCard extends AbstractCard {
Object o = mapActivity.getMapLayers().getContextMenuLayer().getSelectedObject();
if (o instanceof Amenity) {
Amenity am = (Amenity) o;
long amenityId = (am.getId() >> 1);
long amenityId = am.getId() >> 1;
getPicturesForPlace(result, amenityId);
}
try {

View file

@ -907,9 +907,9 @@ public class ContextMenuLayer extends OsmandMapLayer {
}
@NonNull
public Map<Object, IContextMenuProvider> selectObjectsForContextMenu(RotatedTileBox tileBox,
PointF point, boolean acquireObjLatLon,
boolean unknownLocation) {
private Map<Object, IContextMenuProvider> selectObjectsForContextMenu(RotatedTileBox tileBox,
PointF point, boolean acquireObjLatLon,
boolean unknownLocation) {
Map<LatLon, BackgroundType> pressedLatLonFull = new HashMap<>();
Map<LatLon, BackgroundType> pressedLatLonSmall = new HashMap<>();
Map<Object, IContextMenuProvider> selectedObjects = new HashMap<>();