]> iEval git - unical.git/commitdiff
Add sort order to Event#getEventsByCalendar
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 29 May 2013 21:35:24 +0000 (00:35 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 29 May 2013 21:35:24 +0000 (00:35 +0300)
src/ro/ieval/unical/Event.java

index 85ad215edd6e8d75c464873932623e55c488a914..2842638598615822809285b14334882adc8163f5 100644 (file)
@@ -64,13 +64,13 @@ final class Event implements Parcelable{
                this.calendarID=calendarID;
        }
 
-       public static Event[] getEventsByCalendar(final Context context, final int calendarID){
+       public static Event[] getEventsByCalendar(final Context context, final int 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)},
-                               null);
+                               sort);
                cursor.moveToFirst();
                final Event[] events = new Event[cursor.getCount()];
                for(int i=0;i<events.length;i++)
This page took 0.026006 seconds and 4 git commands to generate.