Fixed a bug where editing task from widget wouldn't have required id param in intent

pull/14/head
Sam Bosley 14 years ago
parent 6550a4fd88
commit a9fc5b8d5c

@ -738,6 +738,7 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
} }
model = TaskService.createWithValues(values, null, model = TaskService.createWithValues(values, null,
taskService, metadataService); taskService, metadataService);
getActivity().getIntent().putExtra(TOKEN_ID, model.getId());
} }
if (model.getValue(Task.TITLE).length() == 0) { if (model.getValue(Task.TITLE).length() == 0) {
@ -960,12 +961,6 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
Toast.LENGTH_SHORT).show(); Toast.LENGTH_SHORT).show();
} }
protected void commentsButtonClick() {
Intent launchIntent = new Intent(getActivity(), EditNoteActivity.class);
launchIntent.putExtra(EditNoteActivity.EXTRA_TASK_ID, model.getId());
startActivity(launchIntent);
}
@Override @Override
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) { switch (item.getItemId()) {

Loading…
Cancel
Save