diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2012-03-09 06:28:55 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2012-03-09 06:28:55 +0100 |
commit | d04d03c7d146547069329381f7e6c4f1bb6eefa7 (patch) | |
tree | ae90a00dcdff83dff1b7da0bf8a008fc198a96f4 /cgeo-calendar | |
parent | 6f2e70e5512704f79df0da6cfbad28cd00504530 (diff) | |
download | cgeo-d04d03c7d146547069329381f7e6c4f1bb6eefa7.zip cgeo-d04d03c7d146547069329381f7e6c4f1bb6eefa7.tar.gz cgeo-d04d03c7d146547069329381f7e6c4f1bb6eefa7.tar.bz2 |
refactoring: log exceptions, remove unused method
Diffstat (limited to 'cgeo-calendar')
-rw-r--r-- | cgeo-calendar/src/cgeo/calendar/CalendarActivity.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java index f2a5c0a..b339954 100644 --- a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java +++ b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java @@ -110,8 +110,7 @@ public final class CalendarActivity extends Activity { calendars.put(id, calName); } } catch (NumberFormatException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + Log.e(LOG_TAG, "CalendarActivity.selectCalendarForAdding", e); } } } while (cursor.moveToNext()); @@ -237,7 +236,7 @@ public final class CalendarActivity extends Activity { } catch (Exception e) { showToast(getResources().getString(R.string.event_fail)); - Log.e(LOG_TAG, "CalendarActivity.addToCalendarFn: " + e.toString()); + Log.e(LOG_TAG, "CalendarActivity.addToCalendarFn", e); } } @@ -257,7 +256,7 @@ public final class CalendarActivity extends Activity { * targetSdkVersion changes to 14. For example CalendarContract.EXTRA_EVENT_BEGIN_TIME and * Events.TITLE */ - Intent intent = new Intent(Intent.ACTION_INSERT) + final Intent intent = new Intent(Intent.ACTION_INSERT) .setData(Compatibility.getCalendarEventsProviderURI()) .putExtra("beginTime", eventDate.getTime() + 43200000) .putExtra("allDay", true) |