@Override public void setImageBitmap(Bitmap bm) {
    this.animationResId = 0;
    animationName = null;
    cancelLoaderTask();
    super.setImageBitmap(bm);
  }
Keeps track of explicit user actions taken and prevents onRestoreInstanceState from overwriting already set values.
lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java