mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-18 19:59:00 +00:00
Fix quest display issues. Fixes #1043
This commit is contained in:
parent
e0e96a5ae2
commit
2e9c849d3f
2 changed files with 12 additions and 4 deletions
|
|
@ -10,6 +10,12 @@ open class QuestContent : RealmObject(), Item {
|
|||
|
||||
@PrimaryKey
|
||||
internal var key: String = ""
|
||||
set(value) {
|
||||
field = value
|
||||
drop?.key = value
|
||||
colors?.key = value
|
||||
boss?.key = value
|
||||
}
|
||||
internal var text: String = ""
|
||||
var notes: String = ""
|
||||
internal var value: Int = 0
|
||||
|
|
@ -73,8 +79,8 @@ open class QuestContent : RealmObject(), Item {
|
|||
this.text = text
|
||||
}
|
||||
|
||||
fun setValue(value: Int?) {
|
||||
this.value = value!!
|
||||
fun setValue(value: Int) {
|
||||
this.value = value
|
||||
}
|
||||
|
||||
fun setKey(key: String) {
|
||||
|
|
|
|||
|
|
@ -179,11 +179,13 @@ class QuestDetailFragment : BaseMainFragment() {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
questParticipantList?.addView(participantView)
|
||||
} else {
|
||||
statusTextView?.visibility = View.GONE
|
||||
if (participant.participatesInQuest == true) {
|
||||
questParticipantList?.addView(participantView)
|
||||
}
|
||||
}
|
||||
questParticipantList?.addView(participantView)
|
||||
if (quest?.active == true || participant.participatesInQuest == true) {
|
||||
participantCount += 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue