From 31830a018026a35bbdaf24cb4e38d6d220b155be Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 7 Feb 2013 13:10:03 -0800 Subject: [PATCH] Fixed display of completed/deleted history items --- astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java index ca7410f57..cba11bc99 100644 --- a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java @@ -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_COMPLETED_AT.equals(column)) { - long value = AndroidUtilities.tryParseLong(newValue, 0); - if (value > 0) { + if (!TextUtils.isEmpty(newValue) && !"null".equals(newValue)) { result = context.getString(R.string.history_completed, item); } else { result = context.getString(R.string.history_uncompleted, item); } } else if (History.COL_DELETED_AT.equals(column)) { - long value = AndroidUtilities.tryParseLong(newValue, 0); - if (value > 0) { + if (!TextUtils.isEmpty(newValue) && !"null".equals(newValue)) { result = context.getString(R.string.history_deleted, item); } else { result = context.getString(R.string.history_undeleted, item);