diff options
Diffstat (limited to 'cgeo-calendar')
| -rw-r--r-- | cgeo-calendar/.settings/org.eclipse.jdt.core.prefs | 2 | ||||
| -rw-r--r-- | cgeo-calendar/src/cgeo/calendar/CalendarActivity.java | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs b/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs index 09db027..78a085f 100644 --- a/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs +++ b/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs @@ -8,7 +8,7 @@ org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.autoboxing=warning +org.eclipse.jdt.core.compiler.problem.autoboxing=ignore org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning org.eclipse.jdt.core.compiler.problem.deadCode=warning org.eclipse.jdt.core.compiler.problem.deprecation=warning diff --git a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java index 226b486..61f257f 100644 --- a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java +++ b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java @@ -215,7 +215,7 @@ public final class CalendarActivity extends Activity { final Date eventDate = parseDate(); final String description = parseDescription(); - final String location = parseLocation(); + final String eventLocation = parseLocation(); // values final ContentValues event = new ContentValues(); @@ -226,8 +226,8 @@ public final class CalendarActivity extends Activity { event.put("title", Html.fromHtml(name).toString()); event.put("description", description); - if (location.length() > 0) { - event.put("eventLocation", location); + if (eventLocation.length() > 0) { + event.put("eventLocation", eventLocation); } event.put("allDay", 1); event.put("hasAlarm", 0); @@ -251,7 +251,7 @@ public final class CalendarActivity extends Activity { try { final Date eventDate = parseDate(); final String description = parseDescription(); - final String location = parseLocation(); + final String eventLocation = parseLocation(); /* * TODO These strings are available as constants starting with API 14 and can be used when @@ -266,7 +266,7 @@ public final class CalendarActivity extends Activity { .putExtra("description", description) .putExtra("hasAlarm", false) .putExtra("eventTimezone", "UTC") - .putExtra("eventLocation", location); + .putExtra("eventLocation", eventLocation); startActivity(intent); } catch (Exception e) { showToast(getResources().getString(R.string.event_fail)); |
