Skip to content

Commit

Permalink
Merge branch 'crash-when-getting-a-billing-client-disconnect-droid-51…
Browse files Browse the repository at this point in the history
…5' into prepare-android/2023.8
  • Loading branch information
albin-mullvad committed Nov 20, 2023
2 parents 55b41cf + 0a2f41d commit 57309b8
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 57309b8

Please sign in to comment.