From 15c5abb0104bc3e1f64c4847ad2d094b1a8079aa Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Thu, 18 Jun 2020 16:08:38 -0500 Subject: [PATCH] Remove extra startActivity --- app/src/main/java/org/tasks/activities/UriHandler.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/java/org/tasks/activities/UriHandler.kt b/app/src/main/java/org/tasks/activities/UriHandler.kt index b92e978ad..79a6f7e8d 100644 --- a/app/src/main/java/org/tasks/activities/UriHandler.kt +++ b/app/src/main/java/org/tasks/activities/UriHandler.kt @@ -37,13 +37,6 @@ class UriHandler : AppCompatActivity() { } else { 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 -> { Timber.w("Invalid uri: ${intent.data}")