Fixed a bug where blank tasks would be created when adding TEA

pull/14/head
Sam Bosley 13 years ago
parent 267d7d16f4
commit 32807933aa

@ -140,6 +140,7 @@ public class AstridWrapperActivity extends FragmentActivity
public void onTaskListItemClicked(long taskId) {
Intent intent = new Intent(this, TaskEditWrapperActivity.class);
intent.putExtra(TaskEditActivity.TOKEN_ID, taskId);
getIntent().putExtra(TaskEditActivity.TOKEN_ID, taskId); // Needs to be in activity intent so that TEA onResume doesn't create a blank activity
if (getIntent().hasExtra(TaskListActivity.TOKEN_FILTER))
intent.putExtra(TaskListActivity.TOKEN_FILTER, getIntent().getParcelableExtra(TaskListActivity.TOKEN_FILTER));

Loading…
Cancel
Save