mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-08-01 03:30:34 +00:00
Correctly sort rage strikes. Fixes #944
This commit is contained in:
parent
d0eb1d98ba
commit
d91e367112
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ class QuestProgressView : LinearLayout {
|
|||
rageStrikeDescriptionView.text = context.getString(R.string.rage_strike_count, progress?.activeRageStrikeNumber, progress?.rageStrikes?.size ?: 0)
|
||||
|
||||
rageStrikeContainer.removeAllViews()
|
||||
progress?.rageStrikes?.forEach { strike ->
|
||||
progress?.rageStrikes?.sortedByDescending { it.wasHit }?.forEach { strike ->
|
||||
val iconView = ImageView(context)
|
||||
if (strike.wasHit) {
|
||||
DataBindingUtils.loadImage("rage_strike_${strike.key}", {
|
||||
|
|
|
|||
Loading…
Reference in a new issue