wasabeef / Blurry

Blurry is an easy blur library for Android
Apache License 2.0
5.57k stars 602 forks source link

Blurry.delete() #72

Open bliveinhack opened 6 years ago

bliveinhack commented 6 years ago

When using more Blurry view inside parent view it fails to delete parent view. How to reproduce

`

` Now if we do `Blurry.with(context).radius(30).animate().capture(child_1).into(child_1);` And then `Blurry.with(context).radius(30).animate().onto(ParentView)` Now using `Blurry.delete(ParentView)` doesn't remove blur. **Actual Output** Nothing happens. **Correct Output** It should remove given views's blur.
PrashamTrivedi commented 5 years ago

Blurry.delete(ParentView) should clear ParentView's blur automatically. And looking at sample, I can confirm this API works.

However Blurry.onto(ParentView).into(ImageView) does not save any actual blur operation on ParentView. It looks like Blurry creates blurred bitmap from ParentView and applies to ImageView, so there is nothing blurry can do here.

Workaround will be.

Reset child_1's drawable manually.