aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-calendar
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-03-09 06:28:55 +0100
committerBananeweizen <bananeweizen@gmx.de>2012-03-09 06:28:55 +0100
commitd04d03c7d146547069329381f7e6c4f1bb6eefa7 (patch)
treeae90a00dcdff83dff1b7da0bf8a008fc198a96f4 /cgeo-calendar
parent6f2e70e5512704f79df0da6cfbad28cd00504530 (diff)
downloadcgeo-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.java7
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)