Skip to content

Commit 07bca37

Browse files
committed
More documentation
1 parent 6861c40 commit 07bca37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,9 @@ public static boolean isScreenOn(Context appContext) {
591591
/**
592592
* We use StartFromBackgroundRunnable to detect if app is started from background or foreground.
593593
* 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.
596597
*/
597598
public static class StartFromBackgroundRunnable implements Runnable {
598599
private final AppStartTrace trace;

0 commit comments

Comments
 (0)