public boolean hasSameContext(Context context) {
    if (context == null) {
      return this.context == null;
    }
    Context contextToCompare = this.context instanceof Application ? context.getApplicationContext() : context;
    return contextToCompare == this.context;
  }
Returns the previously set bitmap or null.
lottie/src/main/java/com/airbnb/lottie/manager/ImageAssetManager.java