mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-17 11:32:05 +00:00
Only increase daily streak if task is checked off.
This commit is contained in:
parent
1d9eb05453
commit
25eabb1bef
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class TaskRepositoryImpl(localRepository: TaskLocalRepository, apiClient: ApiCli
|
|||
task.value = task.value + res.delta
|
||||
if (Task.TYPE_DAILY == task.type || Task.TYPE_TODO == task.type) {
|
||||
task.completed = up
|
||||
if (Task.TYPE_DAILY == task.type) {
|
||||
if (Task.TYPE_DAILY == task.type && up) {
|
||||
task.streak = (task.streak ?: 0) + 1
|
||||
}
|
||||
} else if (Task.TYPE_HABIT == task.type) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue