I'm using lottie animation inside my recyclerView.Here is a my source
     if (story.isRead)
            lottieAnimationView.setAnimation("story_archive_gray.json");
        else
            lottieAnimationView.setAnimation("story_archive_blue.json");
        final LinearLayout loadMoreContainer = v.findViewById(R.id.load_more_container);
        loadMoreContainer.setVisibility(story.isLastElement ? View.VISIBLE : View.GONE);
        rootView.setOnClickListener(view -> {
            lottieAnimationView.addAnimatorListener(new Animator.AnimatorListener() {
                @Override
                public void onAnimationStart(Animator animation) {
                }
                @Override
                public void onAnimationEnd(Animator animation) {
                    SPLogger.logMassage("animationListener","onAnimationEnd");
                    animation.cancel();
                    //call activity
                }
                @Override
                public void onAnimationCancel(Animator animation) {
                    SPLogger.logMassage("animationListener","onAnimationCancel");
                }
                @Override
                public void onAnimationRepeat(Animator animation) {
                    SPLogger.logMassage("animationListener","onAnimationRepeat");
                }
            });
            lottieAnimationView.playAnimation();
        });
I have one problem, sometimes animation does not finishing and onAnimationCancel has calling automatically .can anyone tell me a reason? I put my json files inside asset folders