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