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

Commit 5584b497 authored by Nick Pelly's avatar Nick Pelly
Browse files

Print timestamp (instead of age) in Location#toString()

Age was a bad idea, since it depends when toString() was called

Change-Id: Ica0b6bfa9a93b5a452ba3def5fbb2b0a0194c401
parent 2b7a0d00
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);