From 2f44d83f3921b04bb71f0bb2a2a2b40abe241c8f Mon Sep 17 00:00:00 2001 From: Rajiv Thorat Date: Fri, 25 Oct 2019 19:21:04 +0200 Subject: [PATCH] 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. --- .../habitica/ui/adapter/inventory/ShopRecyclerAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/adapter/inventory/ShopRecyclerAdapter.kt b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/adapter/inventory/ShopRecyclerAdapter.kt index 7ae174ef5..0d98050d8 100644 --- a/Habitica/src/main/java/com/habitrpg/android/habitica/ui/adapter/inventory/ShopRecyclerAdapter.kt +++ b/Habitica/src/main/java/com/habitrpg/android/habitica/ui/adapter/inventory/ShopRecyclerAdapter.kt @@ -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 {