forked from organicmaps/organicmaps
Merge pull request #5461 from goblinr/MAPSME-155-ext-gallery-more-button-fix
[android] prevent showing gallery if it has only 5 images
This commit is contained in:
commit
25152748fa
1 changed files with 2 additions and 1 deletions
|
@ -664,7 +664,8 @@ public class PlacePageView extends RelativeLayout
|
|||
@Override
|
||||
public void onItemClick(View v, int position)
|
||||
{
|
||||
if (position == GalleryAdapter.MAX_COUNT - 1)
|
||||
if (position == GalleryAdapter.MAX_COUNT - 1
|
||||
&& mGalleryAdapter.getItems().size() > GalleryAdapter.MAX_COUNT)
|
||||
{
|
||||
GalleryActivity.start(getContext(), mGalleryAdapter.getItems(), mMapObject.getTitle());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue