commit | 507a908bbd1318bec60bbceba30fe0e61b377271 | [log] [tgz] |
---|---|---|
author | Gabriel Peal <gabriel@watershedclimate.com> | Fri Nov 11 19:47:26 2022 -0800 |
committer | Gabriel Peal <gabriel@watershedclimate.com> | Fri Nov 11 19:47:26 2022 -0800 |
tree | e83bf0719752fbc78d71052bc67c4ce916b45a7d | |
parent | 592c5f635e7b9f6fc1ae1f2f162c4535430283b3 [diff] |
Only store application context in ImageAssetManager
diff --git a/lottie/src/main/java/com/airbnb/lottie/manager/ImageAssetManager.java b/lottie/src/main/java/com/airbnb/lottie/manager/ImageAssetManager.java index afda3b5..f36fc6b 100644 --- a/lottie/src/main/java/com/airbnb/lottie/manager/ImageAssetManager.java +++ b/lottie/src/main/java/com/airbnb/lottie/manager/ImageAssetManager.java
@@ -38,7 +38,7 @@ return; } - context = ((View) callback).getContext(); + context = ((View) callback).getContext().getApplicationContext(); this.imageAssets = imageAssets; setDelegate(delegate); }