cleanup
This commit is contained in:
parent
0fdc58960a
commit
4eae0ee60a
3 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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<>();
|
||||
|
|
Loading…
Reference in a new issue