From: Marius Gavrilescu Date: Thu, 30 May 2013 08:38:14 +0000 (+0300) Subject: Some more int to long fixes X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=452aaab6a8f8b0a7ed8c3af7b56a78929f357564;p=unical.git Some more int to long fixes --- diff --git a/src/ro/ieval/unical/Attendee.java b/src/ro/ieval/unical/Attendee.java index 6097e7c..e39c5b0 100644 --- a/src/ro/ieval/unical/Attendee.java +++ b/src/ro/ieval/unical/Attendee.java @@ -65,7 +65,7 @@ final class Attendee { this.status=status; } - public static Attendee[] getAttendeesByEvent(final Context context, final int eventID){ + public static Attendee[] getAttendeesByEvent(final Context context, final long eventID){ final ContentResolver cr=context.getContentResolver(); final Cursor cursor = Attendees.query(cr, eventID, PROJECTION); cursor.moveToFirst(); diff --git a/src/ro/ieval/unical/Event.java b/src/ro/ieval/unical/Event.java index 2842638..c09e366 100644 --- a/src/ro/ieval/unical/Event.java +++ b/src/ro/ieval/unical/Event.java @@ -64,12 +64,12 @@ final class Event implements Parcelable{ this.calendarID=calendarID; } - public static Event[] getEventsByCalendar(final Context context, final int calendarID, final String sort){ + public static Event[] getEventsByCalendar(final Context context, final long calendarID, final String sort){ final ContentResolver cr=context.getContentResolver(); final Cursor cursor = cr.query(Events.CONTENT_URI, PROJECTION, Events.CALENDAR_ID+" = ?", - new String[]{Integer.toString(calendarID)}, + new String[]{Long.toString(calendarID)}, sort); cursor.moveToFirst(); final Event[] events = new Event[cursor.getCount()];