show proper actionbar title at duplicating tasks

This commit is contained in:
tibbi 2022-07-26 18:45:02 +02:00
parent dd68534109
commit 00cafeb70d
1 changed files with 4 additions and 4 deletions

View File

@ -216,14 +216,14 @@ class TaskActivity : SimpleActivity() {
mTask = task mTask = task
mTaskOccurrenceTS = intent.getLongExtra(EVENT_OCCURRENCE_TS, 0L) mTaskOccurrenceTS = intent.getLongExtra(EVENT_OCCURRENCE_TS, 0L)
mTaskCompleted = intent.getBooleanExtra(IS_TASK_COMPLETED, false) mTaskCompleted = intent.getBooleanExtra(IS_TASK_COMPLETED, false)
if (savedInstanceState == null) {
setupEditTask()
}
if (intent.getBooleanExtra(IS_DUPLICATE_INTENT, false)) { if (intent.getBooleanExtra(IS_DUPLICATE_INTENT, false)) {
mTask.id = null mTask.id = null
task_toolbar.title = getString(R.string.new_task) task_toolbar.title = getString(R.string.new_task)
} }
if (savedInstanceState == null) {
setupEditTask()
}
} else { } else {
mTask = Event(null) mTask = Event(null)
config.apply { config.apply {