mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 01:38:21 +00:00
Stats points b4 class system (#991)
* Click listener for BulkAllocateStatsDialog is disabled until user reaches level 10 * Click listener for BulkAllocateStatsDialog is disabled until user reaches level 10 * Properly placed conditional * extra line removed :/
This commit is contained in:
parent
a0083e4b3c
commit
ed38ca6000
1 changed files with 4 additions and 1 deletions
|
|
@ -122,7 +122,10 @@ class StatsFragment: BaseMainFragment() {
|
|||
|
||||
statsAllocationButton.setOnClickListener {
|
||||
if (user?.stats?.points ?: 0 > 0) {
|
||||
showBulkAllocateDialog()
|
||||
val lvl = user?.stats?.getLvl()
|
||||
if (lvl != null && lvl >= 10) {
|
||||
showBulkAllocateDialog()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue