diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-02 10:36:38 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-02 10:36:38 -0700 |
commit | b148feff51d7f2805b1af378ad07740bfbeb53a8 (patch) | |
tree | 044106601debe01402b3572807ecc1d3f08cf0ba /app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABDialogs.kt | |
parent | 0018677886197db4f72d2b49e3d0266526b95435 (diff) | |
download | frost-2e66e6889050dfc29886ecae7c107dab6ffcd487.tar.gz frost-2e66e6889050dfc29886ecae7c107dab6ffcd487.tar.bz2 frost-2e66e6889050dfc29886ecae7c107dab6ffcd487.zip |
Test tagsv1.0.2
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABDialogs.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABDialogs.kt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABDialogs.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABDialogs.kt index f0a544f7..08958480 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABDialogs.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/iab/IABDialogs.kt @@ -40,8 +40,19 @@ fun Activity.playStoreNoLongerPro() { } } -fun Activity.playStoreNotAvailable() { - playStoreLog("Store not available") +fun Activity.playStoreNotFound() { + L.d("Play store not found") + materialDialogThemed { + title(R.string.uh_oh) + content(R.string.play_store_not_found) + positiveText(R.string.kau_ok) + neutralText(R.string.kau_play_store) + onNeutral { _, _ -> startPlayStoreLink(R.string.play_store_package_id) } + } +} + +fun Activity.playStoreProNotAvailable() { + playStoreLog("Pro found; store not available") materialDialogThemed { title(R.string.uh_oh) content(R.string.play_store_not_found) |