Skip to content
Browse files

Suppress detail separator if it shows up in the beginning of your text

  • Loading branch information...
1 parent 6c5a259 commit 3423ae184d396310da35ece6f6f5fbdfaa75325e @timsu timsu committed Sep 22, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java
View
2 astrid/src/com/todoroo/astrid/adapter/TaskAdapter.java
@@ -337,6 +337,8 @@ public synchronized void setFieldContentsAndVisibility(View view) {
viewHolder.details.setVisibility(View.GONE);
} else {
viewHolder.details.setVisibility(View.VISIBLE);
+ if(details.startsWith(DETAIL_SEPARATOR))
+ details = details.substring(DETAIL_SEPARATOR.length());
viewHolder.details.setText(convertToHtml(details.trim().replace("\n", //$NON-NLS-1$
"<br>"), detailImageGetter, null)); //$NON-NLS-1$
}

0 comments on commit 3423ae1

Please sign in to comment.
Something went wrong with that request. Please try again.