Skip to content

Commit

Permalink
Removed check for context in font asset manager if delegate is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
nihad92 committed Feb 13, 2020
1 parent ca8d5ac commit fa0286a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ public Typeface getTypeface(Font font) {
}

private FontAssetManager getFontAssetManager() {
if (getCallback() == null) {
if (getCallback() == null && fontAssetDelegate == null) {
// We can't get a bitmap since we can't get a Context from the callback.
return null;
}
Expand Down

0 comments on commit fa0286a

Please sign in to comment.