Skip to content

Commit

Permalink
Merge pull request Dimezis#180 from tttcowan/fix_rendereffect_view_pa…
Browse files Browse the repository at this point in the history
…rent_view

Fix: Intermittent IllegalStateException
  • Loading branch information
Dimezis authored Jun 14, 2022
2 parents ce85a46 + 6b4e8a4 commit 9d7a593
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public void onGlobalLayout() {
ViewGroup.LayoutParams.MATCH_PARENT,
blurView.getMeasuredHeight()
);
if (backgroundView.getParent() != null) {
((ViewGroup)backgroundView.getParent()).removeView(backgroundView);
}
blurView.addView(backgroundView, 0, params);
}
});
Expand Down

0 comments on commit 9d7a593

Please sign in to comment.