diff --git a/firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java b/firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java index 2b24d616e03..e75da2f25ad 100644 --- a/firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java +++ b/firebase-perf/src/main/java/com/google/firebase/perf/metrics/AppStartTrace.java @@ -446,7 +446,7 @@ public void onActivityPaused(Activity activity) { return; } View rootView = activity.findViewById(android.R.id.content); - if (rootView == null) { + if (rootView != null) { rootView.getViewTreeObserver().removeOnDrawListener(onDrawCounterListener); } }