From 00cafeb70dc150844e6a11f4b73069e8cdeaae31 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 26 Jul 2022 18:45:02 +0200 Subject: [PATCH] show proper actionbar title at duplicating tasks --- .../calendar/pro/activities/TaskActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt index 41e64bf3d..da677d04f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/TaskActivity.kt @@ -216,14 +216,14 @@ class TaskActivity : SimpleActivity() { mTask = task mTaskOccurrenceTS = intent.getLongExtra(EVENT_OCCURRENCE_TS, 0L) mTaskCompleted = intent.getBooleanExtra(IS_TASK_COMPLETED, false) + if (savedInstanceState == null) { + setupEditTask() + } + if (intent.getBooleanExtra(IS_DUPLICATE_INTENT, false)) { mTask.id = null task_toolbar.title = getString(R.string.new_task) } - - if (savedInstanceState == null) { - setupEditTask() - } } else { mTask = Event(null) config.apply {