Fix deprecation

This commit is contained in:
Mygod
2018-10-25 14:48:20 +08:00
parent 42a0f8ab2f
commit bba5eb99b2

View File

@@ -61,7 +61,7 @@ class EBegFragment : DialogFragment(), PurchasesUpdatedListener, BillingClientSt
openDialog(R.string.donations__google_android_market_not_supported_title, openDialog(R.string.donations__google_android_market_not_supported_title,
R.string.donations__google_android_market_not_supported) R.string.donations__google_android_market_not_supported)
} else billingClient.launchBillingFlow(requireActivity(), BillingFlowParams.newBuilder() } else billingClient.launchBillingFlow(requireActivity(), BillingFlowParams.newBuilder()
.setSku(sku.sku).setType(BillingClient.SkuType.INAPP).build()) .setSkuDetails(sku).build())
} }
@Suppress("ConstantConditionIf") @Suppress("ConstantConditionIf")
if (BuildConfig.DONATIONS) (view.findViewById<ViewStub>(R.id.donations__more_stub).inflate() as Button) if (BuildConfig.DONATIONS) (view.findViewById<ViewStub>(R.id.donations__more_stub).inflate() as Button)