Added Track as an extra to the Intent used with Intent.ACTION_SEND

Also removed the Locations ArrayList from the Track writeToParcel and createFromParcel as it's no longer populated
This commit is contained in:
Benjamin Hardill b hardill
2011-04-26 00:43:20 +01:00
parent ddf684f6c6
commit 1d3a03909b
3 changed files with 13 additions and 8 deletions
@@ -51,10 +51,6 @@ public class Track implements Parcelable {
track.stats = source.readParcelable(classLoader);
track.numberOfPoints = source.readInt();
for (int i = 0; i < track.numberOfPoints; ++i) {
Location loc = source.readParcelable(classLoader);
track.locations.add(loc);
}
track.tableId = source.readString();
return track;
@@ -103,9 +99,6 @@ public class Track implements Parcelable {
dest.writeParcelable(stats, 0);
dest.writeInt(numberOfPoints);
for (int i = 0; i < numberOfPoints; ++i) {
dest.writeParcelable(locations.get(i), 0);
}
dest.writeString(tableId);
}