Skip to content

Commit 1e1d6d3

Browse files
committed
Add back the onCreateTime check in the background runnable
1 parent 237280c commit 1e1d6d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,9 @@ public StartFromBackgroundRunnable(final AppStartTrace trace) {
593593

594594
@Override
595595
public void run() {
596-
trace.mainThreadRunnableTime = new Timer();
596+
if (trace.onCreateTime == null) {
597+
trace.mainThreadRunnableTime = new Timer();
598+
}
597599
}
598600
}
599601

0 commit comments

Comments
 (0)