Search in sources :

Example 1 with GetFlickrPhotos

use of io.jawg.osmcontributor.flickr.rest.asynctask.GetFlickrPhotos in project osm-contributor by jawg.

the class PhotoActivity method initView.

private void initView() {
    poiId = getIntent().getLongExtra("poiId", 0);
    if (ImageAdapter.getPhotoUrlsCachedThumbs(poiId) == null || ImageAdapter.getPhotoUrlsCachedThumbs(poiId).isEmpty()) {
        gridPhotos.setVisibility(View.INVISIBLE);
        loadingImage.setVisibility(View.VISIBLE);
    }
    Poi currentPoi = application.getOsmTemplateComponent().getPoiManager().queryForId(poiId);
    asyncGetPhotos = new GetFlickrPhotos(longitude, latitude, application.getFlickr(), NB_IMAGE_REQUESTED, NB_PAGE_REQUESTED, currentPoi);
    asyncGetPhotos.execute();
}
Also used : GetFlickrPhotos(io.jawg.osmcontributor.flickr.rest.asynctask.GetFlickrPhotos) Poi(io.jawg.osmcontributor.model.entities.Poi)

Aggregations

GetFlickrPhotos (io.jawg.osmcontributor.flickr.rest.asynctask.GetFlickrPhotos)1 Poi (io.jawg.osmcontributor.model.entities.Poi)1