Merge "Prevent potential NPE of checking task drawn for logger" into sc-dev am: ad1cfd0db8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14772867 Change-Id: I32bb86e1c8f41ca9e612e841cb8df01b435c365b
This commit is contained in:
@@ -780,7 +780,7 @@ class ActivityMetricsLogger {
|
|||||||
// window drawn event should report later to complete the transition. Otherwise all
|
// window drawn event should report later to complete the transition. Otherwise all
|
||||||
// activities in this task may be finished, invisible or drawn, so the transition event
|
// activities in this task may be finished, invisible or drawn, so the transition event
|
||||||
// should be cancelled.
|
// should be cancelled.
|
||||||
if (t.forAllActivities(
|
if (t != null && t.forAllActivities(
|
||||||
a -> a.mVisibleRequested && !a.isReportedDrawn() && !a.finishing)) {
|
a -> a.mVisibleRequested && !a.isReportedDrawn() && !a.finishing)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user