Fix gifting subscriptions

This commit is contained in:
Phillip Thelen 2019-10-14 13:20:04 +02:00
parent 0f87874ede
commit 4ead5fce0c
3 changed files with 6 additions and 5 deletions

View file

@ -149,7 +149,7 @@ android {
multiDexEnabled true multiDexEnabled true
resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW" resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW"
versionCode 2258 versionCode 2261
versionName "2.2" versionName "2.2"
} }

View file

@ -86,8 +86,8 @@ class GiftSubscriptionActivity : BaseActivity() {
giftedUserID = intent.getStringExtra("userID") giftedUserID = intent.getStringExtra("userID")
giftedUsername = intent.getStringExtra("username") giftedUsername = intent.getStringExtra("username")
if (giftedUserID == null && giftedUsername == null) { if (giftedUserID == null && giftedUsername == null) {
giftedUserID = navArgs<GiftGemsActivityArgs>().value.userID giftedUserID = navArgs<GiftSubscriptionActivityArgs>().value.userID
giftedUsername = navArgs<GiftGemsActivityArgs>().value.username giftedUsername = navArgs<GiftSubscriptionActivityArgs>().value.username
} }
subscriptionButton?.setOnClickListener { subscriptionButton?.setOnClickListener {
@ -112,6 +112,7 @@ class GiftSubscriptionActivity : BaseActivity() {
purchaseHandler?.startListening() purchaseHandler?.startListening()
purchaseHandler?.getAllGiftSubscriptionProducts { purchaseHandler?.getAllGiftSubscriptionProducts {
//skus = it.skus
for (sku in it.skus) { for (sku in it.skus) {
updateButtonLabel(sku, sku.price, it) updateButtonLabel(sku, sku.price, it)
} }

View file

@ -1,4 +1,4 @@
In this update we added managing party members to the party screen and in-app notifications for certain notifications. In this update we added the option to gift gems to other users!
We also fixed some issues with notifications and improved the feedback when opening a mystery item We also fixed issues with feeding pets, gear display and using skills.
Be sure to download this update now for a better Habitica experience! Be sure to download this update now for a better Habitica experience!