]> iEval git - unical.git/commitdiff
Fix two bad calls (getInt instead of getLong)
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 29 May 2013 09:43:04 +0000 (12:43 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 29 May 2013 09:43:04 +0000 (12:43 +0300)
src/ro/ieval/unical/Calendar.java
src/ro/ieval/unical/Event.java

index 134fcd185d77099ef4e16d76463503cad38f4554..1507eb1b67915f90160e1a2a5dae7e88bbdf75b0 100644 (file)
@@ -43,7 +43,7 @@ final class Calendar {
                cursor.moveToFirst();
                final Calendar[] calendars = new Calendar[cursor.getCount()];
                for(int i=0;i<calendars.length;i++)
-                       calendars[i]=new Calendar(cursor.getInt(0), cursor.getString(1), cursor.getString(2), cursor.getInt(3)!=0, cursor.getString(4), cursor.getString(5));
+                       calendars[i]=new Calendar(cursor.getLong(0), cursor.getString(1), cursor.getString(2), cursor.getInt(3)!=0, cursor.getString(4), cursor.getString(5));
                return calendars;
        }
 }
index 66872af85598c60f919ce6e8c9507593a63ec464..85ad215edd6e8d75c464873932623e55c488a914 100644 (file)
@@ -74,7 +74,7 @@ final class Event implements Parcelable{
                cursor.moveToFirst();
                final Event[] events = new Event[cursor.getCount()];
                for(int i=0;i<events.length;i++)
-                       events[i]=new Event(cursor.getInt(0), cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4), cursor.getInt(5), cursor.getLong(6), cursor.getLong(7), cursor.getLong(8));
+                       events[i]=new Event(cursor.getLong(0), cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4), cursor.getInt(5), cursor.getLong(6), cursor.getLong(7), cursor.getLong(8));
                return events;
        }
 
This page took 0.019489 seconds and 4 git commands to generate.