Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e906b028 authored by Brian Julian's avatar Brian Julian Committed by Automerger Merge Worker
Browse files

Merge "Documents IllegalStateException throw condition in Location Javadocs...

Merge "Documents IllegalStateException throw condition in Location Javadocs for getMslAltitudeMeters() and getMslAltitudeAccuracyMeters()." into udc-dev am: 51890ebf am: 2044ba60 am: 6833eeca

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23672596



Change-Id: I8f63bfac6a3448af431fa042f19c1a758a53f79c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 35ae6bc5 6833eeca
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -709,7 +709,7 @@ public class Location implements Parcelable {
    /**
     * Returns the Mean Sea Level altitude of this location in meters.
     *
     * <p>This is only valid if {@link #hasMslAltitude()} is true.
     * @throws IllegalStateException if {@link #hasMslAltitude()} is false.
     */
    public @FloatRange double getMslAltitudeMeters() {
        Preconditions.checkState(hasMslAltitude(),
@@ -744,7 +744,7 @@ public class Location implements Parcelable {
     * percentile confidence level. This means that there is 68% chance that the true Mean Sea Level
     * altitude of this location falls within {@link #getMslAltitudeMeters()} +/- this uncertainty.
     *
     * <p>This is only valid if {@link #hasMslAltitudeAccuracy()} is true.
     * @throws IllegalStateException if {@link #hasMslAltitudeAccuracy()} is false.
     */
    public @FloatRange(from = 0.0) float getMslAltitudeAccuracyMeters() {
        Preconditions.checkState(hasMslAltitudeAccuracy(),