Skip to content
Commit 395a7572 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Only consider the last launched activity for metrics logger

Otherwise the logger needs to make sure that every visibility changes
belonging to the launch event are handled. Especially when there are
trampoline activities, such as if they are removed without visibility
change, then the launch time and trace may be unexpectedly long.

This simplifies the logic to track undrawn transition info. In general,
the occluded/behind activities are not important to the metrics.

Bug: 204488635
Test: atest ActivityMetricsLaunchObserverTests#testConsecutiveLaunch

Change-Id: I6c7e94a1a43acf642da77a23f400159d78144599
parent cc110e6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment