Blurry icon indicating copy to clipboard operation
Blurry copied to clipboard

Blurry.delete()

Open bliveinhack opened this issue 7 years ago • 1 comments

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

<ParentView> <child_1> <child_2> </ParentView>

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.

bliveinhack avatar Jan 08 '18 14:01 bliveinhack

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.

PrashamTrivedi avatar Dec 20 '18 12:12 PrashamTrivedi