forked from upstream-mirrors/OpenTracks
Removed modifiedtime from Track - was likely a Google Drive leftover.
This commit is contained in:
@@ -58,8 +58,6 @@ public class Track implements Parcelable {
|
|||||||
private int numberOfPoints = 0;
|
private int numberOfPoints = 0;
|
||||||
private String icon = "";
|
private String icon = "";
|
||||||
|
|
||||||
@Deprecated //TODO Is this still used or a left over from Google Drive integration?
|
|
||||||
private long modifiedTime = -1L;
|
|
||||||
private TripStatistics tripStatistics = new TripStatistics();
|
private TripStatistics tripStatistics = new TripStatistics();
|
||||||
|
|
||||||
// Location points (which may not have been loaded)
|
// Location points (which may not have been loaded)
|
||||||
@@ -77,7 +75,6 @@ public class Track implements Parcelable {
|
|||||||
stopId = in.readLong();
|
stopId = in.readLong();
|
||||||
numberOfPoints = in.readInt();
|
numberOfPoints = in.readInt();
|
||||||
icon = in.readString();
|
icon = in.readString();
|
||||||
modifiedTime = in.readLong();
|
|
||||||
|
|
||||||
ClassLoader classLoader = getClass().getClassLoader();
|
ClassLoader classLoader = getClass().getClassLoader();
|
||||||
tripStatistics = in.readParcelable(classLoader);
|
tripStatistics = in.readParcelable(classLoader);
|
||||||
@@ -103,7 +100,6 @@ public class Track implements Parcelable {
|
|||||||
dest.writeLong(stopId);
|
dest.writeLong(stopId);
|
||||||
dest.writeInt(numberOfPoints);
|
dest.writeInt(numberOfPoints);
|
||||||
dest.writeString(icon);
|
dest.writeString(icon);
|
||||||
dest.writeLong(modifiedTime);
|
|
||||||
|
|
||||||
dest.writeParcelable(tripStatistics, 0);
|
dest.writeParcelable(tripStatistics, 0);
|
||||||
for (int i = 0; i < numberOfPoints; ++i) {
|
for (int i = 0; i < numberOfPoints; ++i) {
|
||||||
@@ -175,14 +171,6 @@ public class Track implements Parcelable {
|
|||||||
this.icon = icon;
|
this.icon = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getModifiedTime() {
|
|
||||||
return modifiedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModifiedTime(long modifiedTime) {
|
|
||||||
this.modifiedTime = modifiedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TripStatistics getTripStatistics() {
|
public TripStatistics getTripStatistics() {
|
||||||
return tripStatistics;
|
return tripStatistics;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ public class TrackUtils {
|
|||||||
if (description != null) {
|
if (description != null) {
|
||||||
track.setDescription(description);
|
track.setDescription(description);
|
||||||
}
|
}
|
||||||
track.setModifiedTime(System.currentTimeMillis());
|
|
||||||
contentProviderUtils.updateTrack(track);
|
contentProviderUtils.updateTrack(track);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user