Skip to content

Commit

Permalink
Fix quest display issues. Fixes #1043
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Sep 20, 2018
1 parent e0e96a5 commit 2e9c849
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2e9c849

Please sign in to comment.