@Override
            public void onAnimationEnd(Animator animation) {
                if (isLast) {
                    mIsAddRemoveAnim = false;
                    if (mTempAdapter != null) {
                        notifyDataSetChanged(mTempAdapter);
                    }
                }
            }
first time set an adapter

@param adapter adapter
infinite-cards/src/main/java/com/bakerj/infinitecards/CardAnimationHelper.java