Dimezis / BlurView

Dynamic iOS-like blur of underlying Views for Android
Apache License 2.0
3.5k stars 333 forks source link

Fix: Intermittent IllegalStateException #180

Closed tttcowan closed 2 years ago

tttcowan commented 2 years ago

Guard against IllegalStateException caused by adding backgroundView to blurView when it already has a parent. This seems to be an intermittent problem I picked up from Crashlytics.

tttcowan commented 2 years ago

image

Dimezis commented 2 years ago

Thanks, I'll release it when I'm back from holidays

Dimezis commented 2 years ago

I released 2.0.1, but after some consideration, I'd advise to not use RenderEffectBlur at the moment. It causes a constant BlurView redrawing which adds a big overhead. I'll keep investigating how to improve it