mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
Update PurchaseDialog.kt (#1693)
This commit is contained in:
parent
e2bb4ccf0a
commit
75ff8b845a
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ class PurchaseDialog(context: Context, component: UserComponent?, val item: Shop
|
|||
@OptIn(ExperimentalTime::class)
|
||||
private fun setLimitedTextView() {
|
||||
if (user == null) return
|
||||
if (shopItem.habitClass != null && shopItem.habitClass != "special" && user?.stats?.habitClass != shopItem.habitClass) {
|
||||
if (shopItem.habitClass != null && shopItem.habitClass != "special" && shopItem.habitClass != "armoire" && user?.stats?.habitClass != shopItem.habitClass) {
|
||||
limitedTextView.text = context.getString(R.string.class_equipment_shop_dialog)
|
||||
limitedTextView.visibility = View.VISIBLE
|
||||
limitedTextView.setBackgroundColor(ContextCompat.getColor(context, R.color.inverted_background))
|
||||
|
|
|
|||
Loading…
Reference in a new issue