fix shop display

This commit is contained in:
Phillip Thelen 2024-05-30 12:55:37 +02:00
parent 517f77a462
commit 1d76976c98
4 changed files with 8 additions and 10 deletions

View file

@ -29,6 +29,6 @@ class Shop {
const val QUEST_SHOP = "questShop"
const val TIME_TRAVELERS_SHOP = "timeTravelersShop"
const val SEASONAL_SHOP = "seasonalShop"
const val CUSTOMIZATIONS = "customizationsShop"
const val CUSTOMIZATIONS = "customizations"
}
}

View file

@ -37,7 +37,7 @@ class ShopRecyclerAdapter : androidx.recyclerview.widget.RecyclerView.Adapter<Vi
var onShowPurchaseDialog: ((ShopItem, Boolean) -> Unit)? = null
private val items: MutableList<Any> = ArrayList()
private var shopIdentifier: String? = null
internal var shopIdentifier: String? = null
private var ownedItems: Map<String, OwnedItem> = HashMap()
var armoireItem: ShopItem? = null
@ -87,7 +87,6 @@ class ShopRecyclerAdapter : androidx.recyclerview.widget.RecyclerView.Adapter<Vi
if (shop == null) {
return
}
shopIdentifier = shop.identifier
items.clear()
items.add(shop)
for (category in shop.categories) {

View file

@ -354,6 +354,7 @@ open class ShopFragment : BaseMainFragment<FragmentRefreshRecyclerviewBinding>()
}
}
shop = newShop
adapter?.shopIdentifier = shopIdentifier
adapter?.setShop(newShop)
binding?.refreshLayout?.isRefreshing = false
}

View file

@ -1,7 +1,5 @@
New in 4.3.7:
- Experience and level should update automatically after finishing a Quest
- Shop banners should now show properly during seasonal events
- Fixed an issue that would prevent the creation of new Challenges
- Fixed an issue with Settings not properly displaying selected changes
- Adjusted the conditions for when a review prompt will show
- Various other bug fixes and improvements
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