From 82b251e471658a867cb52e4e0425df1ab93c7cd2 Mon Sep 17 00:00:00 2001 From: Gabriel Peal Date: Fri, 28 Aug 2020 14:24:26 -0700 Subject: [PATCH] Add cacheKey to LottieCompositionFactory call --- .../main/java/com/airbnb/lottie/LottieCompositionFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java b/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java index 0ae8125fd9..8d6fb95042 100644 --- a/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java +++ b/lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java @@ -207,7 +207,7 @@ public static LottieTask fromRawRes(Context context, @RawRes * * Pass null as the cache key to skip caching. */ - public static LottieTask fromRawRes(Context context, @RawRes final int rawRes, @Nullable String cacheKey) { + public static LottieTask fromRawRes(Context context, @RawRes final int rawRes, @Nullable final String cacheKey) { // Prevent accidentally leaking an Activity. final WeakReference contextRef = new WeakReference<>(context); final Context appContext = context.getApplicationContext(); @@ -216,7 +216,7 @@ public static LottieTask fromRawRes(Context context, @RawRes public LottieResult call() { @Nullable Context originalContext = contextRef.get(); Context context = originalContext != null ? originalContext : appContext; - return fromRawResSync(context, rawRes); + return fromRawResSync(context, rawRes, cacheKey); } }); }