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:
Rajiv Thorat 2019-10-25 19:21:04 +02:00 committed by Phillip Thelen
parent 683d3e520b
commit 2f44d83f39

View file

@ -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 {