mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 12:49:02 +00:00
fix adjusting task streaks
This commit is contained in:
parent
9fb3ac7fd6
commit
7c9f8d507c
1 changed files with 2 additions and 2 deletions
|
|
@ -146,8 +146,6 @@ class TaskFormActivity : BaseActivity() {
|
|||
statConstitutionButton.setOnClickListener { selectedStat = Stats.CONSTITUTION }
|
||||
statPerceptionButton.setOnClickListener { selectedStat = Stats.PERCEPTION }
|
||||
|
||||
configureForm()
|
||||
|
||||
if (taskId != null) {
|
||||
isCreating = false
|
||||
compositeSubscription.add(taskRepository.getUnmanagedTask(taskId).firstElement().subscribe(Consumer {
|
||||
|
|
@ -156,9 +154,11 @@ class TaskFormActivity : BaseActivity() {
|
|||
fillForm(it)
|
||||
}, RxErrorHandler.handleEmptyError()))
|
||||
} else if (bundle.containsKey(PARCELABLE_TASK)) {
|
||||
isCreating = false
|
||||
task = bundle.getParcelable(PARCELABLE_TASK)
|
||||
task?.let { fillForm(it) }
|
||||
}
|
||||
configureForm()
|
||||
}
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
|
|
|
|||
Loading…
Reference in a new issue