Fix IllegalStateException
This commit is contained in:
@@ -98,7 +98,7 @@ class EBegFragment : DialogFragment(), PurchasesUpdatedListener, BillingClientSt
|
|||||||
override fun onConsumeResponse(responseCode: Int, purchaseToken: String?) {
|
override fun onConsumeResponse(responseCode: Int, purchaseToken: String?) {
|
||||||
if (responseCode == BillingClient.BillingResponse.OK) {
|
if (responseCode == BillingClient.BillingResponse.OK) {
|
||||||
openDialog(R.string.donations__thanks_dialog_title, R.string.donations__thanks_dialog)
|
openDialog(R.string.donations__thanks_dialog_title, R.string.donations__thanks_dialog)
|
||||||
dismiss()
|
dismissAllowingStateLoss()
|
||||||
} else Crashlytics.log(Log.ERROR, TAG, "onConsumeResponse: $responseCode")
|
} else Crashlytics.log(Log.ERROR, TAG, "onConsumeResponse: $responseCode")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user