]> iEval git - unical.git/commitdiff
Some more int to long fixes
authorMarius Gavrilescu <marius@ieval.ro>
Thu, 30 May 2013 08:38:14 +0000 (11:38 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Thu, 30 May 2013 08:38:14 +0000 (11:38 +0300)
src/ro/ieval/unical/Attendee.java
src/ro/ieval/unical/Event.java

index 6097e7c35e7da051c73ecc81929e4abb561cf5e7..e39c5b0d21b2a1481b3f126b57ff4b3965aebd21 100644 (file)
@@ -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();
index 2842638598615822809285b14334882adc8163f5..c09e36666ae76db205321d858c62fdfffc577d7c 100644 (file)
@@ -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()];
This page took 0.026952 seconds and 4 git commands to generate.