From ce09d9a5090ff50a329930cbe5e843156a3b4d12 Mon Sep 17 00:00:00 2001 From: Dmitry Donskoy Date: Tue, 18 Jun 2019 11:55:07 +0300 Subject: [PATCH] [android] Fixed review notes https://github.com/mapsme/omim/pull/11034#discussion_r293329129 https://github.com/mapsme/omim/pull/11034#discussion_r293330048 https://github.com/mapsme/omim/pull/11034#discussion_r293330692 https://github.com/mapsme/omim/pull/11034#discussion_r293331193 https://github.com/mapsme/omim/pull/11034#discussion_r293333841 https://github.com/mapsme/omim/pull/11034#discussion_r293334088 https://github.com/mapsme/omim/pull/11034#discussion_r293337084 https://github.com/mapsme/omim/pull/11034#discussion_r293338328 https://github.com/mapsme/omim/pull/11034#discussion_r293338710 https://github.com/mapsme/omim/pull/11034#discussion_r293345894 https://github.com/mapsme/omim/pull/11034#discussion_r293363381 https://github.com/mapsme/omim/pull/11034#discussion_r293364316 https://github.com/mapsme/omim/pull/11034#discussion_r293364557 https://github.com/mapsme/omim/pull/11034#discussion_r293364316 --- .../com/mapswithme/maps/widget/placepage/PlacePageView.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index 5d7e55ecb1..6718fe7609 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -1207,14 +1207,15 @@ public class PlacePageView extends NestedScrollView if (country != null && !RoutingController.get().isNavigating()) attachCountry(country); } - boolean hasPromoGallery = mSponsored != null && mSponsored.getType() == Sponsored.TYPE_PROMO_CATALOG; - toggleCatalogPromoGallery(hasPromoGallery); refreshViews(policy); } private void processSponsored(@NonNull NetworkPolicy policy) { // Promo.INSTANCE.nativeRequestCityGallery(policy); + boolean hasPromoGallery = mSponsored != null && mSponsored.getType() == Sponsored.TYPE_PROMO_CATALOG; + toggleCatalogPromoGallery(hasPromoGallery); + if (mSponsored == null || mMapObject == null) return;