From 38b7fad6c563573c6ef0f21df9cf8d5ccf45e9ed Mon Sep 17 00:00:00 2001 From: Roman Romanov Date: Wed, 22 Feb 2017 09:56:31 +0400 Subject: [PATCH] [android] clear gallery adapter when place page start update. --- .../src/com/mapswithme/maps/widget/placepage/PlacePageView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index 890b89bafb..c918ae3eaa 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -57,6 +57,7 @@ import com.mapswithme.maps.editor.data.TimeFormatUtils; import com.mapswithme.maps.editor.data.Timetable; import com.mapswithme.maps.gallery.FullScreenGalleryActivity; import com.mapswithme.maps.gallery.GalleryActivity; +import com.mapswithme.maps.gallery.Image; import com.mapswithme.maps.location.LocationHelper; import com.mapswithme.maps.review.ReviewActivity; import com.mapswithme.maps.routing.RoutingController; @@ -1054,6 +1055,7 @@ public class PlacePageView extends RelativeLayout { refreshLatLon(); + mGalleryAdapter.setItems(new ArrayList()); if (mSponsored == null) { final String website = mMapObject.getMetadata(Metadata.MetadataType.FMD_WEBSITE);