From eb82668fc6bf8505bec7c920ece9aff3988d6478 Mon Sep 17 00:00:00 2001 From: Altynaika Date: Thu, 4 Feb 2021 22:26:44 +0600 Subject: [PATCH] [android] Disabled the place reviews. Signed-off-by: Altynaika --- .../res/layout/place_page_preview_rating.xml | 48 +++++++++---------- .../mapswithme/maps/ugc/UGCController.java | 6 +-- .../maps/widget/placepage/PlacePageView.java | 12 ++--- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/android/res/layout/place_page_preview_rating.xml b/android/res/layout/place_page_preview_rating.xml index c8253b3461..d4a690dbf4 100644 --- a/android/res/layout/place_page_preview_rating.xml +++ b/android/res/layout/place_page_preview_rating.xml @@ -8,30 +8,30 @@ android:orientation="horizontal" tools:background="#8000FFFF" tools:showIn="@layout/place_page_preview"> - - + + + + + + + + + + + + + + + + + + + + + + + + reviews = ugc.getReviews(); if (reviews != null) diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index 0efc6dc063..2c9eb360ed 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -147,7 +147,7 @@ public class PlacePageView extends NestedScrollViewClickFixed private TextView mTvDistance; private TextView mTvAddress; private View mPreviewRatingInfo; - private RatingView mRatingView; +// private RatingView mRatingView; private TextView mTvSponsoredPrice; @SuppressWarnings("NullableProblems") @NonNull @@ -426,7 +426,7 @@ public class PlacePageView extends NestedScrollViewClickFixed mPreview.findViewById(R.id.search_hotels_btn).setOnClickListener(this); mPreviewRatingInfo = mPreview.findViewById(R.id.preview_rating_info); - mRatingView = mPreviewRatingInfo.findViewById(R.id.rating_view); +// mRatingView = mPreviewRatingInfo.findViewById(R.id.rating_view); mTvSponsoredPrice = mPreviewRatingInfo.findViewById(R.id.tv__hotel_price); mHotelDiscount = mPreviewRatingInfo.findViewById(R.id.discount_in_percents); @@ -936,8 +936,8 @@ public class PlacePageView extends NestedScrollViewClickFixed String text = getResources().getQuantityString( R.plurals.placepage_summary_rating_description, reviewsCount, reviewsCount); mHotelRatingBase.setText(text); - TextView previewReviewCountView = mPreviewRatingInfo.findViewById(R.id.tv__review_count); - previewReviewCountView.setText(text); +// TextView previewReviewCountView = mPreviewRatingInfo.findViewById(R.id.tv__review_count); +// previewReviewCountView.setText(text); } } @@ -1374,8 +1374,8 @@ public class PlacePageView extends NestedScrollViewClickFixed @SuppressWarnings("ConstantConditions") boolean isRatingEmpty = TextUtils.isEmpty(mSponsored.getRating()); Impress impress = Impress.values()[mSponsored.getImpress()]; - mRatingView.setRating(impress, mSponsored.getRating()); - UiUtils.showIf(!isRatingEmpty, mRatingView); +// mRatingView.setRating(impress, mSponsored.getRating()); +// UiUtils.showIf(!isRatingEmpty, mRatingView); mTvSponsoredPrice.setText(mSponsoredPrice); UiUtils.showIf(!isPriceEmpty, mTvSponsoredPrice); boolean isBookingInfoExist = (!isRatingEmpty || !isPriceEmpty) &&