From d022ee491d397c26149f166d4a8fc7a0f85b8f4b Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 29 May 2013 12:10:35 +0300 Subject: [PATCH] Change types of _ID from int to long --- src/ro/ieval/unical/Calendar.java | 4 ++-- src/ro/ieval/unical/Event.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ro/ieval/unical/Calendar.java b/src/ro/ieval/unical/Calendar.java index 2827641..134fcd1 100644 --- a/src/ro/ieval/unical/Calendar.java +++ b/src/ro/ieval/unical/Calendar.java @@ -16,7 +16,7 @@ final class Calendar { }; /** Calendar ID */ - public final int _id; + public final long _id; /** Calendar name */ public final String name; /** Calendar display name */ @@ -28,7 +28,7 @@ final class Calendar { /** Type of the calendar used to sync this calendar */ public final String accountType; - private Calendar(final int _id, final String name, final String displayName, final boolean visible, final String accountName, final String accountType) { + private Calendar(final long _id, final String name, final String displayName, final boolean visible, final String accountName, final String accountType) { this._id=_id; this.name=name; this.displayName=displayName; diff --git a/src/ro/ieval/unical/Event.java b/src/ro/ieval/unical/Event.java index 4c6abba..38dd137 100644 --- a/src/ro/ieval/unical/Event.java +++ b/src/ro/ieval/unical/Event.java @@ -11,7 +11,7 @@ final class Event implements Parcelable{ public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { @Override public Event createFromParcel(Parcel source) { - return new Event(source.readInt(), source.readString(), source.readString(), source.readString(), source.readString(), source.readInt(), source.readLong(), source.readLong()); + return new Event(source.readLong(), source.readString(), source.readString(), source.readString(), source.readString(), source.readInt(), source.readLong(), source.readLong()); } @Override @@ -33,7 +33,7 @@ final class Event implements Parcelable{ }; /** Event ID */ - public final int _id; + public final long _id; /** Event owner */ public final String organizer; /** Event title */ @@ -49,7 +49,7 @@ final class Event implements Parcelable{ /** Event end time (UTC milliseconds since epoch) */ public final long dtend; - private Event(final int _id, final String organizer, final String title, final String eventLocation, final String description, final int eventColor, final long dtstart, final long dtend) { + private Event(final long _id, final String organizer, final String title, final String eventLocation, final String description, final int eventColor, final long dtstart, final long dtend) { this._id=_id; this.organizer=organizer; this.title=title; @@ -81,7 +81,7 @@ final class Event implements Parcelable{ @Override public void writeToParcel(Parcel dest, int flags) { - dest.writeInt(_id); + dest.writeLong(_id); dest.writeString(organizer); dest.writeString(title); dest.writeString(eventLocation); -- 2.39.2