From 78cd632eab0aa1db2146cbc212024cec77da3609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=97=D0=B0=D1=86=D0=B5=D0=BF=D0=B8=D0=BD?= Date: Thu, 28 Feb 2019 14:39:08 +0300 Subject: [PATCH] [android] Fixed float price calculation --- android/src/com/mapswithme/maps/purchase/PurchaseUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/purchase/PurchaseUtils.java b/android/src/com/mapswithme/maps/purchase/PurchaseUtils.java index f164aa483c..afaede725c 100644 --- a/android/src/com/mapswithme/maps/purchase/PurchaseUtils.java +++ b/android/src/com/mapswithme/maps/purchase/PurchaseUtils.java @@ -42,7 +42,7 @@ public class PurchaseUtils @NonNull static ProductDetails toProductDetails(@NonNull SkuDetails skuDetails) { - float price = skuDetails.getPriceAmountMicros() / 1000000; + float price = skuDetails.getPriceAmountMicros() / 1000000f; String currencyCode = skuDetails.getPriceCurrencyCode(); return new ProductDetails(skuDetails.getSku(), price, currencyCode, skuDetails.getTitle()); }