From 3ec1456a3e9ed5238b4a0360b23f646f1cb93645 Mon Sep 17 00:00:00 2001 From: mar-v-in Date: Mon, 19 Jan 2015 01:45:41 +0100 Subject: [PATCH] Small fixes --- src/com/google/android/gms/common/api/Status.java | 1 + src/com/google/android/gms/location/LocationRequest.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/google/android/gms/common/api/Status.java b/src/com/google/android/gms/common/api/Status.java index 1431f98c..903563ad 100644 --- a/src/com/google/android/gms/common/api/Status.java +++ b/src/com/google/android/gms/common/api/Status.java @@ -14,6 +14,7 @@ public final class Status extends AutoSafeParcelable implements Result { public static final Status INTERRUPTED = new Status(STATUS_CODE_INTERRUPTED); public static final Status CANCELED = new Status(STATUS_CODE_CANCELED); + public static final Status SUCCESS = new Status(0); private final int versionCode; private final int statusCode; diff --git a/src/com/google/android/gms/location/LocationRequest.java b/src/com/google/android/gms/location/LocationRequest.java index a1105821..a5369fd0 100644 --- a/src/com/google/android/gms/location/LocationRequest.java +++ b/src/com/google/android/gms/location/LocationRequest.java @@ -399,7 +399,7 @@ public class LocationRequest extends AutoSafeParcelable { * @return the same object, so that setters can be chained * @throws IllegalArgumentException if smallestDisplacementMeters is negative */ - public LocationRequest setSmallestDesplacement(float smallestDisplacementMeters) { + public LocationRequest setSmallestDisplacement(float smallestDisplacementMeters) { if (smallestDisplacementMeters < 0) throw new IllegalArgumentException("smallestDisplacementMeters must not be negative"); this.smallestDesplacement = smallestDisplacementMeters;