mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-14 10:11:58 +00:00
Improve auto allocation handling. Fixes #840
This commit is contained in:
parent
0d3574efd3
commit
8a2b170da4
1 changed files with 2 additions and 4 deletions
|
|
@ -138,9 +138,7 @@ class StatsFragment: BaseMainFragment() {
|
|||
}
|
||||
|
||||
private fun showHelpAlert(resourceId: Int) {
|
||||
val builder = AlertDialog.Builder(context)
|
||||
.setMessage(resourceId)
|
||||
.setOkButton()
|
||||
val builder = AlertDialog.Builder(context).setMessage(resourceId).setOkButton()
|
||||
builder.show()
|
||||
}
|
||||
|
||||
|
|
@ -230,7 +228,7 @@ class StatsFragment: BaseMainFragment() {
|
|||
outfitList.add(outfit.shield)
|
||||
outfitList.add(outfit.weapon)
|
||||
|
||||
inventoryRepository.getItems(outfitList).subscribe(Action1 {
|
||||
inventoryRepository.getItems(outfitList).first().subscribe(Action1 {
|
||||
val userStatComputer = UserStatComputer()
|
||||
val statsRows = userStatComputer.computeClassBonus(it, user)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue