From bba5eb99b202c30b796bd92978323cbba33514d4 Mon Sep 17 00:00:00 2001 From: Mygod Date: Thu, 25 Oct 2018 14:48:20 +0800 Subject: [PATCH] Fix deprecation --- mobile/src/base/java/be/mygod/vpnhotspot/EBegFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/base/java/be/mygod/vpnhotspot/EBegFragment.kt b/mobile/src/base/java/be/mygod/vpnhotspot/EBegFragment.kt index 12990fcf..c53783a4 100644 --- a/mobile/src/base/java/be/mygod/vpnhotspot/EBegFragment.kt +++ b/mobile/src/base/java/be/mygod/vpnhotspot/EBegFragment.kt @@ -61,7 +61,7 @@ class EBegFragment : DialogFragment(), PurchasesUpdatedListener, BillingClientSt openDialog(R.string.donations__google_android_market_not_supported_title, R.string.donations__google_android_market_not_supported) } else billingClient.launchBillingFlow(requireActivity(), BillingFlowParams.newBuilder() - .setSku(sku.sku).setType(BillingClient.SkuType.INAPP).build()) + .setSkuDetails(sku).build()) } @Suppress("ConstantConditionIf") if (BuildConfig.DONATIONS) (view.findViewById(R.id.donations__more_stub).inflate() as Button)