From 452aaab6a8f8b0a7ed8c3af7b56a78929f357564 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 30 May 2013 11:38:14 +0300 Subject: [PATCH] Some more int to long fixes --- src/ro/ieval/unical/Attendee.java | 2 +- src/ro/ieval/unical/Event.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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()]; -- 2.39.2