From ff8dd5992a4f051d8a5dece520ba70a9339028f0 Mon Sep 17 00:00:00 2001 From: Alexey Osminin Date: Mon, 7 Dec 2020 17:24:19 +0300 Subject: [PATCH] [android] fix for hidden description label on PP --- .../mapswithme/maps/widget/placepage/PlacePageView.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index b123bc78e6..1d396312b0 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -1293,19 +1293,21 @@ public class PlacePageView extends NestedScrollViewClickFixed private void setPlaceDescription(@NonNull MapObject mapObject) { - if (TextUtils.isEmpty(mapObject.getDescription())) + boolean isBookmark = MapObject.isOfType(MapObject.BOOKMARK, mapObject); + if (TextUtils.isEmpty(mapObject.getDescription()) && !isBookmark) { UiUtils.hide(mPlaceDescriptionContainer, mPlaceDescriptionHeaderContainer); return; } String authorId = null; - if (MapObject.isOfType(MapObject.BOOKMARK, mapObject)) + if (isBookmark) { Bookmark bmk = (Bookmark) mapObject; if (!TextUtils.isEmpty(bmk.getBookmarkDescription())) { - UiUtils.hide(mPlaceDescriptionContainer, mPlaceDescriptionHeaderContainer); + UiUtils.show(mPlaceDescriptionHeaderContainer); + UiUtils.hide(mPlaceDescriptionContainer, mPromoDivider); return; } authorId = bmk.getRelatedAuthorId();