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

Commit 3131d5db authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Avoid potential NPE by accessing ActivityRecord on logger thread" into main

parents 2cf6816a 3a0f2df3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -838,12 +838,13 @@ class ActivityMetricsLogger {
        }

        if (android.app.Flags.appStartInfoTimestamps()) {
            final int pid = r.getPid();
            // Log here to match StatsD for time to first frame.
            mLoggerHandler.post(
                    () -> mSupervisor.mService.mWindowManager.mAmInternal.addStartInfoTimestamp(
                            ApplicationStartInfo.START_TIMESTAMP_FIRST_FRAME,
                            timestampNs, r.getUid(), r.getPid(),
                            info.mLastLaunchedActivity.mUserId));
                            timestampNs, infoSnapshot.applicationInfo.uid, pid,
                            infoSnapshot.userId));
        }

        return infoSnapshot;