diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-04-20 19:39:35 +0200 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-04-20 19:39:35 +0200 |
| commit | 5cf3074129eed3ddd4dffbedd660f5e9df1b059f (patch) | |
| tree | 36998b7de1097122076f844bd36880f719be6904 /cgeo-calendar | |
| parent | c145144aee33db30c97e7a902b5e0f10bca10595 (diff) | |
| download | cgeo-5cf3074129eed3ddd4dffbedd660f5e9df1b059f.zip cgeo-5cf3074129eed3ddd4dffbedd660f5e9df1b059f.tar.gz cgeo-5cf3074129eed3ddd4dffbedd660f5e9df1b059f.tar.bz2 | |
revert settings changes partially
* my Eclipse seems broken, it doesn't show all warnings after a rebuild
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)); |
