@Override
  public void invalidateSelf() {
    if (isDirty) {
      return;
    }
    isDirty = true;

    // Refer to invalidateSelfOnMainThread for more info.
    if (invalidateSelfOnMainThread && Looper.getMainLooper() != Looper.myLooper()) {
      return;
    }
    final Callback callback = getCallback();
    if (callback != null) {
      callback.invalidateDrawable(this);
    }
  }
If you are experiencing a device specific crash that happens during drawing, you can set this to true
for those devices. If set to true, draw will be wrapped with a try/catch which will cause Lottie to
render an empty frame rather than crash your app.
<p>
Ideally, you will never need this and the vast majority of apps and animations won't. However, you may use
this for very specific cases if absolutely necessary.
lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java