This commit is contained in:
Phillip Thelen 2021-02-26 09:14:51 +01:00
parent 2081472b61
commit 9b9f9377e2
2 changed files with 2 additions and 2 deletions

View file

@ -150,7 +150,7 @@ android {
buildConfigField "String", "TESTING_LEVEL", "\"production\""
resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW"
versionCode 2844
versionCode 2847
versionName "3.2.1"
}

View file

@ -91,7 +91,7 @@ class RewardsRecyclerViewAdapter(private var customRewards: OrderedRealmCollecti
if (customRewards != null && position < customRewardCount) {
val reward = customRewards?.get(position) ?: return
val gold = user?.stats?.gp ?: 0.0
(holder as? RewardViewHolder)?.isLocked = canScoreTasks
(holder as? RewardViewHolder)?.isLocked = !canScoreTasks
(holder as? RewardViewHolder)?.bind(reward, position, reward.value <= gold, taskDisplayMode)
} else if (inAppRewards != null) {
val item = inAppRewards?.get(position - customRewardCount) ?: return