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

Commit 257662ef authored by Nick Pelly's avatar Nick Pelly Committed by Android (Google) Code Review
Browse files

Merge "Print timestamp (instead of age) in Location#toString()" into jb-mr1-dev

parents ccc7b98e 5584b497
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -825,9 +825,8 @@ public class Location implements Parcelable {
        if (mElapsedRealtimeNano == 0) {
            s.append(" et=?!?");
        } else {
            long age = SystemClock.elapsedRealtimeNano() - mElapsedRealtimeNano;
            s.append(" age=");
            TimeUtils.formatDuration(age / 1000000L, s);
            s.append(" et=");
            TimeUtils.formatDuration(mElapsedRealtimeNano / 1000000L, s);
        }
        if (mHasAltitude) s.append(" alt=").append(mAltitude);
        if (mHasSpeed) s.append(" vel=").append(mSpeed);