Fixed attachment history display

pull/14/head
Sam Bosley 12 years ago
parent d8cf2f6264
commit 794b05c774

@ -484,11 +484,11 @@ public class UpdateAdapter extends CursorAdapter {
} else if (History.COL_ATTACHMENT_ADDED.equals(column) || History.COL_ATTACHMENT_REMOVED.equals(column)) { } else if (History.COL_ATTACHMENT_ADDED.equals(column) || History.COL_ATTACHMENT_REMOVED.equals(column)) {
JSONArray attachmentArray = new JSONArray(newValue); JSONArray attachmentArray = new JSONArray(newValue);
String attachmentName = attachmentArray.getString(1); String attachmentName = attachmentArray.getString(0);
if (History.COL_ATTACHMENT_ADDED.equals(column)) if (History.COL_ATTACHMENT_ADDED.equals(column))
result = context.getString(R.string.history_attach_added, item, attachmentName); result = context.getString(R.string.history_attach_added, attachmentName, item);
else else
result = context.getString(R.string.history_attach_removed, item, attachmentName); result = context.getString(R.string.history_attach_removed, attachmentName, item);
} else if (History.COL_ACKNOWLEDGED.equals(column)) { } else if (History.COL_ACKNOWLEDGED.equals(column)) {
result = context.getString(R.string.history_acknowledged, item); result = context.getString(R.string.history_acknowledged, item);
} else if (History.COL_SHARED_WITH.equals(column) || History.COL_UNSHARED_WITH.equals(column)) { } else if (History.COL_SHARED_WITH.equals(column) || History.COL_UNSHARED_WITH.equals(column)) {

Loading…
Cancel
Save