File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Parse/src/main/java/com/parse Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,20 @@ public ParseGeoPoint(ParseGeoPoint point) {
70
70
this (point .getLatitude (), point .getLongitude ());
71
71
}
72
72
73
+
74
+ /**
75
+ * Creates a new point instance from a Parcel {@code source}. This is used when unparceling a
76
+ * ParseGeoPoint. Subclasses that need Parcelable behavior should provide their own
77
+ * {@link android.os.Parcelable.Creator} and override this constructor.
78
+ *
79
+ * @param source
80
+ * The recovered parcel.
81
+ */
82
+ protected ParseGeoPoint (Parcel source ) {
83
+ setLatitude (source .readDouble ());
84
+ setLongitude (source .readDouble ());
85
+ }
86
+
73
87
/**
74
88
* Set latitude. Valid range is (-90.0, 90.0). Extremes should not be used.
75
89
*
@@ -285,7 +299,7 @@ public void writeToParcel(Parcel dest, int flags) {
285
299
public final static Creator <ParseGeoPoint > CREATOR = new Creator <ParseGeoPoint >() {
286
300
@ Override
287
301
public ParseGeoPoint createFromParcel (Parcel source ) {
288
- return new ParseGeoPoint (source . readDouble (), source . readDouble () );
302
+ return new ParseGeoPoint (source );
289
303
}
290
304
291
305
@ Override
You can’t perform that action at this time.
0 commit comments