Update state for when you have all armoire items

This commit is contained in:
Hafiz 2023-04-06 14:09:32 -04:00
parent c59bc3cade
commit 2fa66ecbf4
3 changed files with 5 additions and 2 deletions

View file

@ -34,6 +34,7 @@
android:layout_height="68dp" />
</LinearLayout>
<FrameLayout
android:id="@+id/footer_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/offset_background_30"

View file

@ -1381,7 +1381,7 @@
<string name="equipment_class_locked">This equipment is class-locked</string>
<string name="change_class_to_x">Change class to %s</string>
<string name="shop_armoire_title">You own all %s gear</string>
<string name="shop_armoire_description">New gear is released during the seasonal Galas. Until then, theres %d pieces of gear in the Enchanted Armoire to find!</string>
<string name="shop_armoire_description">New gear is released during the seasonal Galas. The Enchanted Armoire gets new stock every month too!</string>
<string name="unlock_gear_and_skills">Unlock %s gear and skills</string>
<plurals name="you_x_others">

View file

@ -288,7 +288,9 @@ class ShopRecyclerAdapter : androidx.recyclerview.widget.RecyclerView.Adapter<Vi
fun bind(className: String, armoireCount: Int) {
binding.titleView.text = itemView.context.getString(R.string.shop_armoire_title, className)
binding.descriptionView.text = itemView.context.getString(R.string.shop_armoire_description, armoireCount)
binding.descriptionView.text = itemView.context.getString(R.string.shop_armoire_description)
binding.iconView.visibility = View.INVISIBLE
binding.footerLayout.visibility = View.INVISIBLE
}
}
}