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

Commit 4d100199 authored by Neil Fuller's avatar Neil Fuller
Browse files

Fix annotation / debugging

Fix copy and paste errors from commit 4ab8a199 -
the API is new so does not need @UnsupportedAppUsage and
the debug log was incorrect.

Bug: 140712361
Test: build only
Change-Id: I123f76d011d7505d3dc053cb48c40353f0579d17
parent 8e56dc39
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -183,12 +183,11 @@ public class NtpTrustedTime implements TrustedTime {
     *
     * @throws IllegalStateException if there is no cached value
     */
    @UnsupportedAppUsage
    public TimestampedValue<Long> getCachedNtpTimeSignal() {
        if (!mHasCache) {
            throw new IllegalStateException("Missing authoritative time source");
        }
        if (LOGD) Log.d(TAG, "currentTimeMillis() cache hit");
        if (LOGD) Log.d(TAG, "getCachedNtpTimeSignal() cache hit");

        return new TimestampedValue<>(mCachedNtpElapsedRealtime, mCachedNtpTime);
    }