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 7ce3da7 commit ee7f7e4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,9 @@ public void onActivityPaused(Activity activity) {
return;
}
View rootView = activity.findViewById(android.R.id.content);
rootView.getViewTreeObserver().removeOnDrawListener(onDrawCounterListener);
if (rootView == null) {
rootView.getViewTreeObserver().removeOnDrawListener(onDrawCounterListener);
}
}

@Override
Expand Down

0 comments on commit ee7f7e4

Please sign in to comment.