aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'cgeo-calendar/src/cgeo/calendar/CalendarEntry.java')
-rw-r--r--cgeo-calendar/src/cgeo/calendar/CalendarEntry.java30
1 files changed, 4 insertions, 26 deletions
diff --git a/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java b/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
index e31e054..6c7624d 100644
--- a/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
+++ b/cgeo-calendar/src/cgeo/calendar/CalendarEntry.java
@@ -20,7 +20,6 @@ class CalendarEntry {
private String url;
private String personalNote;
private String name;
- private String location;
private String coords;
private int startTimeMinutes = -1;
private Uri uri;
@@ -32,7 +31,6 @@ class CalendarEntry {
this.url = getParameter(ICalendar.PARAM_URL);
this.personalNote = getParameter(ICalendar.PARAM_NOTE);
this.name = getParameter(ICalendar.PARAM_NAME);
- location = getParameter(ICalendar.PARAM_LOCATION);
coords = getParameter(ICalendar.PARAM_COORDS);
final String startTime = getParameter(ICalendar.PARAM_START_TIME_MINUTES);
if (startTime.length() > 0) {
@@ -78,30 +76,6 @@ class CalendarEntry {
}
/**
- * @return location string with coordinates and location
- */
- protected String parseLocation() {
- final StringBuilder locBuffer = new StringBuilder();
- if (coords.length() > 0) {
- locBuffer.append(coords);
- }
- if (location.length() > 0) {
- boolean addParentheses = false;
- if (locBuffer.length() > 0) {
- addParentheses = true;
- locBuffer.append(" (");
- }
-
- locBuffer.append(Html.fromHtml(location).toString());
- if (addParentheses) {
- locBuffer.append(')');
- }
- }
-
- return locBuffer.toString();
- }
-
- /**
* @return <code>Date</code> based on hidden date. Time is set to 00:00:00.
*/
protected Date parseDate() {
@@ -153,4 +127,8 @@ class CalendarEntry {
return startTimeMinutes;
}
+ public String getCoords() {
+ return coords;
+ }
+
}