Fixed display of completed/deleted history items

pull/14/head
Sam Bosley 13 years ago
parent 3b17167bd8
commit 31830a0180

@ -466,15 +466,13 @@ public class UpdateAdapter extends CursorAdapter {
} else if (History.COL_MEMBER_ADDED.equals(column) || History.COL_MEMBER_REMOVED.equals(column)) { } else if (History.COL_MEMBER_ADDED.equals(column) || History.COL_MEMBER_REMOVED.equals(column)) {
// //
} else if (History.COL_COMPLETED_AT.equals(column)) { } else if (History.COL_COMPLETED_AT.equals(column)) {
long value = AndroidUtilities.tryParseLong(newValue, 0); if (!TextUtils.isEmpty(newValue) && !"null".equals(newValue)) {
if (value > 0) {
result = context.getString(R.string.history_completed, item); result = context.getString(R.string.history_completed, item);
} else { } else {
result = context.getString(R.string.history_uncompleted, item); result = context.getString(R.string.history_uncompleted, item);
} }
} else if (History.COL_DELETED_AT.equals(column)) { } else if (History.COL_DELETED_AT.equals(column)) {
long value = AndroidUtilities.tryParseLong(newValue, 0); if (!TextUtils.isEmpty(newValue) && !"null".equals(newValue)) {
if (value > 0) {
result = context.getString(R.string.history_deleted, item); result = context.getString(R.string.history_deleted, item);
} else { } else {
result = context.getString(R.string.history_undeleted, item); result = context.getString(R.string.history_undeleted, item);

Loading…
Cancel
Save