From bb2e3beae1b850e12943754faa4da64bf490c7f0 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 22 Feb 2013 14:54:29 -0800 Subject: [PATCH] Fixed some history display bugs --- .../com/todoroo/astrid/adapter/UpdateAdapter.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java index dfb3210df..f617053c1 100644 --- a/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java +++ b/astrid/src/com/todoroo/astrid/adapter/UpdateAdapter.java @@ -444,17 +444,14 @@ public class UpdateAdapter extends CursorAdapter { String item; String itemPosessive; - if (hasTask && taskAttrs != null) { + if (FROM_TASK_VIEW.equals(fromView)) { + item = context.getString(R.string.history_this_task); + } else if (hasTask && taskAttrs != null) { item = taskAttrs.optString(1); - itemPosessive = item + "'s"; } else { - if (FROM_TASK_VIEW.equals(fromView)) { - item = context.getString(R.string.history_this_task); - } else { - item = context.getString(R.string.history_this_list); - } - itemPosessive = item + "'s"; + item = context.getString(R.string.history_this_list); } + itemPosessive = item + "'s"; String oldValue = history.getValue(History.OLD_VALUE); String newValue = history.getValue(History.NEW_VALUE);