diff options
Diffstat (limited to 'src/cgeo/geocaching/cgeodetail.java')
| -rw-r--r-- | src/cgeo/geocaching/cgeodetail.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/cgeodetail.java b/src/cgeo/geocaching/cgeodetail.java index e3f646e..d929d85 100644 --- a/src/cgeo/geocaching/cgeodetail.java +++ b/src/cgeo/geocaching/cgeodetail.java @@ -899,6 +899,16 @@ public class cgeodetail extends AbstractActivity { offlineStore.setOnClickListener(new storeCache()); } + // cache personal note + if (cache.personalNote != null && cache.personalNote.length() > 0) { + ((LinearLayout) findViewById(R.id.personalnote_box)).setVisibility(View.VISIBLE); + + TextView personalNoteText = (TextView) findViewById(R.id.personalnote); + personalNoteText.setVisibility(View.VISIBLE); + personalNoteText.setText(cache.personalNote, TextView.BufferType.SPANNABLE); + personalNoteText.setMovementMethod(LinkMovementMethod.getInstance()); + } + // cache short desc if (cache.shortdesc != null && cache.shortdesc.length() > 0) { ((LinearLayout) findViewById(R.id.desc_box)).setVisibility(View.VISIBLE); @@ -1470,6 +1480,10 @@ public class cgeodetail extends AbstractActivity { description.append(Html.fromHtml(cache.shortdesc).toString()); } + if (cache.personalNote != null && cache.personalNote.length() > 0) { + description.append("\n\n"+Html.fromHtml(cache.personalNote).toString()); + } + ContentValues event = new ContentValues(); event.put("calendar_id", calId); event.put("dtstart", eventDate.getTime() + 43200000); // noon |
