Remove extra startActivity

pull/1025/head
Alex Baker 4 years ago
parent e6dfbea4cb
commit 15c5abb010

@ -37,13 +37,6 @@ class UriHandler : AppCompatActivity() {
} else { } else {
startActivity(TaskIntents.getNewTaskIntent(this, null)) startActivity(TaskIntents.getNewTaskIntent(this, null))
} }
val intent = if (id > 0) {
val task = taskDao.fetch(id)
TaskIntents.getEditTaskIntent(this, task)
} else {
TaskIntents.getNewTaskIntent(this, null)
}
startActivity(intent)
} }
else -> { else -> {
Timber.w("Invalid uri: ${intent.data}") Timber.w("Invalid uri: ${intent.data}")

Loading…
Cancel
Save