Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorАлександр Зацепин <az@mapswithme.com>2017-10-16 19:27:24 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2017-10-16 19:29:57 +0300
commit3163a14e13379764d91d1b6f1892f5fbde599481 (patch)
tree5e32d8534b654c2101be34b7d91c704419bce53e
parenta17c596054e2c990ca03d58e30e7235e963dcf54 (diff)
[android] Added higing your review's text if text is emptybeta-1069beta-1068
-rw-r--r--android/src/com/mapswithme/maps/ugc/UGCController.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/src/com/mapswithme/maps/ugc/UGCController.java b/android/src/com/mapswithme/maps/ugc/UGCController.java
index 74eb477983..cafa6a8378 100644
--- a/android/src/com/mapswithme/maps/ugc/UGCController.java
+++ b/android/src/com/mapswithme/maps/ugc/UGCController.java
@@ -6,6 +6,7 @@ import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
+import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
@@ -257,9 +258,10 @@ public class UGCController implements View.OnClickListener, UGC.UGCListener
return;
TextView name = (TextView) mUserReviewView.findViewById(R.id.name);
TextView date = (TextView) mUserReviewView.findViewById(R.id.date);
- TextView review = (TextView) mUserReviewView.findViewById(R.id.review);
name.setText(R.string.placepage_reviews_your_comment);
date.setText(UGCReviewAdapter.DATE_FORMATTER.format(new Date(update.getTimeMillis())));
+ TextView review = (TextView) mUserReviewView.findViewById(R.id.review);
+ UiUtils.showIf(!TextUtils.isEmpty(update.getText()), review);
review.setText(update.getText());
mUGCUserRatingRecordsAdapter.setItems(update.getRatings());
}