File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
firebase-perf/src/main/java/com/google/firebase/perf/metrics Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -591,8 +591,9 @@ public static boolean isScreenOn(Context appContext) {
591
591
/**
592
592
* We use StartFromBackgroundRunnable to detect if app is started from background or foreground.
593
593
* If app is started from background, we do not generate AppStart trace. This runnable is posted
594
- * to main UI thread from FirebasePerfEarly. If app is started from background, this runnable will
595
- * be executed earlier than 100ms of any activity's onCreate() method.
594
+ * to main UI thread from FirebasePerfEarly. If `onActivityCreate` has never been called, we
595
+ * record the timestamp - which allows `onActivityCreate` to determine whether it was a background
596
+ * app start or not.
596
597
*/
597
598
public static class StartFromBackgroundRunnable implements Runnable {
598
599
private final AppStartTrace trace ;
You can’t perform that action at this time.
0 commit comments