|
|
|
|
@ -2,6 +2,8 @@ package net.pokeranalytics.android.util.billing |
|
|
|
|
|
|
|
|
|
import android.app.Activity |
|
|
|
|
import android.content.Context |
|
|
|
|
import android.os.Handler |
|
|
|
|
import android.os.Looper |
|
|
|
|
import com.android.billingclient.api.* |
|
|
|
|
import net.pokeranalytics.android.BuildConfig |
|
|
|
|
import net.pokeranalytics.android.R |
|
|
|
|
@ -208,7 +210,9 @@ object AppGuard : PurchasesUpdatedListener { |
|
|
|
|
|
|
|
|
|
this._isProUser = true |
|
|
|
|
this.purchaseDelegate?.let { |
|
|
|
|
it.purchaseDidSucceed(purchase) |
|
|
|
|
Handler(Looper.getMainLooper()).post { |
|
|
|
|
it.purchaseDidSucceed(purchase) |
|
|
|
|
} |
|
|
|
|
this.purchaseDelegate = null |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|