mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-08 04:13:06 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user