We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a211815 commit 727f62dCopy full SHA for 727f62d
firebase-perf/src/main/java/com/google/firebase/perf/util/FirstDrawDoneListener.java
@@ -87,11 +87,6 @@ public void onDraw() {
87
* placeholder.
88
*/
89
private static boolean isAliveAndAttached(View view) {
90
- return view.getViewTreeObserver().isAlive() && isAttachedToWindow(view);
91
- }
92
-
93
- /** Backport {@link View#isAttachedToWindow()} which is API 19+ only. */
94
- private static boolean isAttachedToWindow(View view) {
95
- return view.isAttachedToWindow();
+ return view.getViewTreeObserver().isAlive() && view.isAttachedToWindow();
96
}
97
0 commit comments