@NonNull public Parcelable onSaveInstanceState(){
  Bundle bundle=new Bundle();
  bundle.putInt(SAVEDINSTANCESTATE_FIRSTANIMATEDPOSITION,mFirstAnimatedPosition);
  bundle.putInt(SAVEDINSTANCESTATE_LASTANIMATEDPOSITION,mLastAnimatedPosition);
  bundle.putBoolean(SAVEDINSTANCESTATE_SHOULDANIMATE,mShouldAnimate);
  return bundle;
}

@ NonNull public Parcelable onSaveInstanceState ( ) { Bundle bundle = new Bundle ( ) ; bundle . putInt ( SAVEDINSTANCESTATE_FIRSTANIMATEDPOSITION , mFirstAnimatedPosition ) ; bundle . putInt ( SAVEDINSTANCESTATE_LASTANIMATEDPOSITION , mLastAnimatedPosition ) ; bundle . putBoolean ( SAVEDINSTANCESTATE_SHOULDANIMATE , mShouldAnimate ) ; return bundle ; }
returns a parcelable object containing the animationadapter ' s current dynamic state .
