From 9b83cdfe98f0a4d5ccd8dcb61e1d63295aeead61 Mon Sep 17 00:00:00 2001 From: Roman Romanov Date: Fri, 7 Jul 2017 14:48:31 +0400 Subject: [PATCH] [android] Review fixes --- .../src/com/mapswithme/maps/taxi/TaxiAdapter.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java b/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java index 2c647b5c15..49c27ebfd4 100644 --- a/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java +++ b/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java @@ -50,16 +50,24 @@ public class TaxiAdapter extends PagerAdapter View v = LayoutInflater.from(mContext).inflate(R.layout.taxi_pager_item, container, false); TextView name = (TextView) v.findViewById(R.id.product_name); + String separator; // We ignore all Yandex.Taxi product names until they do support of passing product parameters // to their app via deeplink. if (mType == TaxiManager.PROVIDER_YANDEX) + { name.setText(R.string.yandex_taxi_title); + separator = " • ~"; + } else + { name.setText(product.getName()); + separator = " • "; + } TextView timeAndPrice = (TextView) v.findViewById(R.id.arrival_time_price); int time = Integer.parseInt(product.getTime()); - CharSequence waitTime = RoutingController.formatRoutingTime(mContext, time, R.dimen.text_size_body_3); - timeAndPrice.setText(mContext.getString(R.string.taxi_wait, waitTime + " • ~" + CharSequence waitTime = RoutingController.formatRoutingTime(mContext, time, + R.dimen.text_size_body_3); + timeAndPrice.setText(mContext.getString(R.string.taxi_wait, waitTime + separator + formatPrice(product))); container.addView(v, 0); return v;