X-Git-Url: http://git.ieval.ro/?p=unical.git;a=blobdiff_plain;f=src%2Fro%2Fieval%2Funical%2FEvent.java;fp=src%2Fro%2Fieval%2Funical%2FEvent.java;h=9357776ffbf4705dec7189d8be12e22ed6103642;hp=6b39cb3ce9722b18f6f0e61860bd4dbbd82b679d;hb=a9aebc182487c7563735215263870ad025c141eb;hpb=86ad378625e166a5ea5b03614c5926616000bd55 diff --git a/src/ro/ieval/unical/Event.java b/src/ro/ieval/unical/Event.java index 6b39cb3..9357776 100644 --- a/src/ro/ieval/unical/Event.java +++ b/src/ro/ieval/unical/Event.java @@ -144,6 +144,16 @@ final class Event implements Parcelable{ Uri url = context.getContentResolver().insert(Events.CONTENT_URI, cv); } + public void edit(final Context context) { + ContentValues cv = new ContentValues(); + cv.put("calendar_id",calendarID); + cv.put("title",title); + cv.put("description",description); + cv.put("dtstart",dtstart); + cv.put("dtend",dtend); + cv.put("eventTimezone", TimeZone.getDefault().getID()); + context.getContentResolver().update(Events.CONTENT_URI,cv,"_id = '" + String.valueOf(_id) + "'",new String[0]); + } public void delete(final Context context){ final ContentResolver cr=context.getContentResolver();