Skip to content

Commit

Permalink
Add null check rootView to fix issue firebase#6367
Browse files Browse the repository at this point in the history
  • Loading branch information
lehcar09 committed Oct 11, 2024
1 parent ee7f7e4 commit 310dec8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 310dec8

Please sign in to comment.