aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-08-18 20:25:41 -0700
committerGitHub <noreply@github.com>2017-08-18 20:25:41 -0700
commitf5394badad02671dc0de181ab63b9a9bfbe9fd59 (patch)
tree0d5af7a805e407a4a7daffa610d3e1d5deea91bd /app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt
parentede53aff0ca989881247afead959341818f705b4 (diff)
downloadfrost-f5394badad02671dc0de181ab63b9a9bfbe9fd59.tar.gz
frost-f5394badad02671dc0de181ab63b9a9bfbe9fd59.tar.bz2
frost-f5394badad02671dc0de181ab63b9a9bfbe9fd59.zip
Misc 2 (#191)v1.4.6
* Add further checks for iab and remove generic error dialog * Theme all snackbars * Add dynamic media action tile
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt
index 7f6e8a6d..8aa3bcde 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABBinder.kt
@@ -110,7 +110,7 @@ abstract class IABBinder : FrostBilling {
}
val a = activity ?: return
- if (!BillingProcessor.isIabServiceAvailable(a) || !bp.isOneTimePurchaseSupported)
+ if (!BillingProcessor.isIabServiceAvailable(a) || !bp.isInitialized || !bp.isOneTimePurchaseSupported)
a.playStorePurchaseUnsupported()
else
bp.purchase(a, FROST_PRO)
@@ -127,7 +127,7 @@ class IABSettings : IABBinder() {
override fun onBillingError(errorCode: Int, error: Throwable?) {
super.onBillingError(errorCode, error)
- activity?.playStoreGenericError(null)
+ L.e("Billing error $errorCode ${error?.message}")
}
/**