This commit is contained in:
Phillip Thelen 2024-06-25 17:28:22 +02:00
parent 199c929222
commit d096b262cf
4 changed files with 18 additions and 12 deletions

View file

@ -314,10 +314,11 @@ class PurchaseHandler(
val flowParams =
BillingFlowParams.newBuilder().setProductDetailsParamsList(
listOf(skuDetails).map {
BillingFlowParams.ProductDetailsParams.newBuilder()
.setProductDetails(skuDetails).setOfferToken(
skuDetails.subscriptionOfferDetails?.first()?.offerToken ?: "",
).build()
var params = BillingFlowParams.ProductDetailsParams.newBuilder().setProductDetails(skuDetails)
skuDetails.subscriptionOfferDetails?.first()?.offerToken?.let { offerToken ->
params = params.setOfferToken(offerToken)
}
return@map params.build()
},
).build()
billingClient.launchBillingFlow(activity, flowParams)

View file

@ -133,7 +133,7 @@ class ComposeAvatarEquipmentFragment :
val avatar by userViewModel.user.observeAsState()
AvatarEquipmentView(avatar = avatar, configManager = configManager, viewModel.items, viewModel.type, stringResource(viewModel.typeNameId), activeEquipment) { equipment ->
lifecycleScope.launchCatching {
if (equipment.key?.isNotBlank() != true && equipment.key != activeEquipment) {
if ((equipment.key?.isNotBlank() != true || equipment.key?.endsWith("_0") == true) && equipment.key != activeEquipment) {
inventoryRepository.equip(
if (userViewModel.user.value?.preferences?.costume == true) "costume" else "equipped",
activeEquipment ?: "")

View file

@ -1,5 +1,10 @@
New in 4.4:
- Support for upcoming events and content
- Updated avatar customization interface to support new events and content
- Updated push notification library to work with new standards in Firebase Cloud Messaging
- Other various bug fixes and interface improvements
New in 4.4.1:
- Check out the new Customization Shop and Avatar Customization experience!
- New Giraffe Quest Eggs, Koi Hatching Potions, and Summer Hair colors
- Its easier than ever to know when items will switch out
- Hatching option no longer shows on Pet Eggs that arent unlocked
- Body armor is now hidden when previewing shirts
- Pet Bundles show which Quests are in them now
- Avatar Customization view works properly on tablets again
- Various other bug and interface fixes

View file

@ -1,2 +1,2 @@
NAME=4.4
CODE=7981
NAME=4.4.1
CODE=7991