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

Commit 23140d3c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix the huge value of the ACTION_DASHBOARD_VISIBLE_TIME"

parents 5f322de2 c602bd53
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -87,9 +87,11 @@ public class VisibilityLoggerMixin implements LifecycleObserver, OnAttach {
        if (mMetricsFeature == null || mMetricsCategory == METRICS_CATEGORY_UNKNOWN) {
            return;
        }
        if (mCreationTimestamp != 0L) {
            final int elapse = (int) (SystemClock.elapsedRealtime() - mCreationTimestamp);
            mMetricsFeature.action(METRICS_CATEGORY_UNKNOWN, action, mMetricsCategory, key, elapse);
        }
    }

    /**
     * Sets source metrics category for this logger. Source is the caller that opened this UI.