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:
Diffstat (limited to 'android/src/com/mapswithme/maps/taxi/TaxiAdapter.java')
-rw-r--r--android/src/com/mapswithme/maps/taxi/TaxiAdapter.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java b/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java
index 2105d52cc3..49c27ebfd4 100644
--- a/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java
+++ b/android/src/com/mapswithme/maps/taxi/TaxiAdapter.java
@@ -50,16 +50,25 @@ 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 + " • " + formatPrice(product)));
+ 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;
}