Skip to content

Commit

Permalink
Cancel loader tasks when drawable is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Zollinger Chohfi committed Aug 15, 2017
1 parent 76c4ab5 commit 21ff51c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LottieUWP/LottieAnimationView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ public LottieAnimationView()
//{
// set
// {
// RecycleBitmaps();
// CancelLoaderTask();
// base.ImageResource = value;
// recycleBitmaps();
// }
//}

Expand All @@ -245,6 +246,7 @@ public LottieDrawable ImageDrawable
{
RecycleBitmaps();
}
CancelLoaderTask();

if (_viewbox == null)
{
Expand Down

0 comments on commit 21ff51c

Please sign in to comment.