Use string resource instead of hardcoded string

This commit is contained in:
misaochan 2017-05-30 17:43:49 +10:00
parent e63532f32b
commit 42c86576b3

View file

@ -27,7 +27,7 @@ public class NearbyViewHolder implements ViewHolder<Place> {
tvName.setText(place.name);
String description = place.description;
if ( description == null || description.isEmpty() || description.equals("?")) {
description = "No Description Found";
description = context.getString(R.string.no_description_found);
}
tvDesc.setText(description);
distance.setText(place.distance);