From 258808c73783ba31ce8b5c67e4f24faa05197f24 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Mon, 7 Sep 2020 15:20:57 +0300 Subject: [PATCH] [android][taxi] yango taxi is added --- android/res/drawable/ic_logo_yango.xml | 33 +++++++++++++++++++ .../com/mapswithme/maps/taxi/TaxiType.java | 32 ++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 android/res/drawable/ic_logo_yango.xml diff --git a/android/res/drawable/ic_logo_yango.xml b/android/res/drawable/ic_logo_yango.xml new file mode 100644 index 0000000000..ea6fbc7b40 --- /dev/null +++ b/android/res/drawable/ic_logo_yango.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + diff --git a/android/src/com/mapswithme/maps/taxi/TaxiType.java b/android/src/com/mapswithme/maps/taxi/TaxiType.java index 6daff7c7e0..7b4f23f293 100644 --- a/android/src/com/mapswithme/maps/taxi/TaxiType.java +++ b/android/src/com/mapswithme/maps/taxi/TaxiType.java @@ -168,6 +168,38 @@ public enum TaxiType { return "Freenow"; } + }, + YANGO(new LocaleDependentFormatPriceStrategy(), true) + { + @NonNull + public String getPackageName() + { + return "com.yandex.yango"; + } + + @NonNull + public Utils.PartnerAppOpenMode getOpenMode() + { + return Utils.PartnerAppOpenMode.Indirect; + } + + @DrawableRes + public int getIcon() + { + return R.drawable.ic_logo_yango; + } + + @StringRes + public int getTitle() + { + return R.string.yango_taxi_title; + } + + @NonNull + public String getProviderName() + { + return "Yango"; + } }; @StringRes