Fixed dissappearing comments in recent activity

pull/14/head
Andrew Shaw 13 years ago
parent 2a01d8460d
commit e6b2afc3b5

@ -321,6 +321,7 @@ public class TagUpdatesFragment extends ListFragment {
update.setValue(Update.TAGS, "," + tagData.getValue(TagData.REMOTE_ID) + ",");
update.setValue(Update.TAGS_LOCAL, "," + tagData.getId() + ",");
update.setValue(Update.CREATION_DATE, DateUtilities.now());
update.setValue(Update.TARGET_NAME, tagData.getValue(TagData.NAME));
if (picture != null) {
update.setValue(Update.PICTURE, Update.PICTURE_LOADING);
try {

@ -430,6 +430,7 @@ public class EditNoteActivity extends LinearLayout implements TimerActionListene
update.setValue(Update.TASK, task.getValue(Task.REMOTE_ID));
update.setValue(Update.TASK_LOCAL, task.getId());
update.setValue(Update.CREATION_DATE, DateUtilities.now());
update.setValue(Update.TARGET_NAME, task.getValue(Task.TITLE));
if (usePicture && pendingCommentPicture != null) {
update.setValue(Update.PICTURE, Update.PICTURE_LOADING);

@ -261,14 +261,13 @@ public class UpdateAdapter extends CursorAdapter {
commentResource = R.string.update_string_task_assigned;
}
else if (actionCode.equals(UPDATE_TASK_COMMENT)) {
if (fromView.equals(FROM_TASK_VIEW))
if (fromView.equals(FROM_TASK_VIEW) || TextUtils.isEmpty(targetName))
commentResource = R.string.update_string_default_comment;
else
commentResource = R.string.update_string_task_comment;
}
else if (actionCode.equals(UPDATE_TAG_COMMENT)) {
if (fromView.equals(FROM_TAG_VIEW))
if (fromView.equals(FROM_TAG_VIEW) || TextUtils.isEmpty(targetName))
commentResource = R.string.update_string_default_comment;
else
commentResource = R.string.update_string_tag_comment;

Loading…
Cancel
Save