mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-08 07:06:41 +00:00
Fix for issue 1138
Added a check for the category identifier. Check is against string "none" since it seems to represent classless equipment in the drop down.
This commit is contained in:
parent
683d3e520b
commit
2f44d83f39
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ class ShopRecyclerAdapter(private val configManager: AppConfigManager) : android
|
|||
selectedGearCategory = gearCategories[holder.selectedItem].identifier
|
||||
}
|
||||
}
|
||||
if (user?.stats?.habitClass != category?.identifier) {
|
||||
if (user?.stats?.habitClass != category?.identifier && category?.identifier != "none") {
|
||||
sectionHolder.notesView?.text = context.getString(R.string.class_gear_disclaimer)
|
||||
sectionHolder.notesView?.visibility = View.VISIBLE
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue