mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-08-01 03:30:34 +00:00
parent
86ad0be06b
commit
1d0c1e1861
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ class PurchaseDialog(context: Context, component: AppComponent, val item: ShopIt
|
|||
private fun checkGearClass() {
|
||||
val user = user ?: return
|
||||
|
||||
if (user.stats.habitClass != shopItem.habitClass) {
|
||||
if (shopItem.habitClass != null && 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.gray_100))
|
||||
|
|
|
|||
Loading…
Reference in a new issue