Skip to content

Commit

Permalink
Merge branch 'crash-when-getting-a-billing-client-disconnect-droid-515'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Nov 20, 2023
2 parents 1612678 + 0ac7eb3 commit af8439a
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,7 @@ class BillingRepository(context: Context) {
billingClient.startConnection(
object : BillingClientStateListener {
override fun onBillingServiceDisconnected() {
// Maybe do something here?
continuation.resumeWithException(
BillingException(
BillingResponseCode.SERVICE_DISCONNECTED,
"Billing service disconnected"
)
)
// We will reconnect on demand.
}

override fun onBillingSetupFinished(result: BillingResult) {
Expand Down

0 comments on commit af8439a

Please sign in to comment.