Added description to EventViewActivity

This commit is contained in:
Robert Kolner committed 2011-09-21 21:51:39 +02:00
1 parent aaf05368e2
commit 59344057fc
1 file changed
+12 -4
@@ -35,12 +35,20 @@ public class EventViewActivity extends BaseDnsActivity {
location.setText(Html.fromHtml(e.location));
datetime.setText(Html.fromHtml(e.date));
if (e.text.length() > 0) {
description.setText(Html.fromHtml(e.text));
} else if (e.description.length() > 0) {
description.setText(Html.fromHtml(e.description));
StringBuilder sb = new StringBuilder();
if (e.description.length() > 0) {
sb.append("<b>");
sb.append(e.description);
sb.append("</b><br/><br/>");
}
if (e.text.length() > 0) {
sb.append(e.text);
}
description.setText(Html.fromHtml(sb.toString()));
if (e.id > 0) { // if id exists and seems legit
link.setVisibility(View.VISIBLE);
link.setOnClickListener(new OnClickListener() {