Small fixes

This commit is contained in:
mar-v-in 2015-01-19 01:45:41 +01:00
parent c1f66a6b3b
commit 3ec1456a3e
2 changed files with 2 additions and 1 deletions

View File

@ -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 INTERRUPTED = new Status(STATUS_CODE_INTERRUPTED);
public static final Status CANCELED = new Status(STATUS_CODE_CANCELED); 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 versionCode;
private final int statusCode; private final int statusCode;

View File

@ -399,7 +399,7 @@ public class LocationRequest extends AutoSafeParcelable {
* @return the same object, so that setters can be chained * @return the same object, so that setters can be chained
* @throws IllegalArgumentException if smallestDisplacementMeters is negative * @throws IllegalArgumentException if smallestDisplacementMeters is negative
*/ */
public LocationRequest setSmallestDesplacement(float smallestDisplacementMeters) { public LocationRequest setSmallestDisplacement(float smallestDisplacementMeters) {
if (smallestDisplacementMeters < 0) if (smallestDisplacementMeters < 0)
throw new IllegalArgumentException("smallestDisplacementMeters must not be negative"); throw new IllegalArgumentException("smallestDisplacementMeters must not be negative");
this.smallestDesplacement = smallestDisplacementMeters; this.smallestDesplacement = smallestDisplacementMeters;