show proper actionbar title at duplicating tasks
This commit is contained in:
parent
dd68534109
commit
00cafeb70d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue