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
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue