code: @Override
      protected void finalizeDismiss() {
          if (getActiveDismissCount() == 0 && getActiveSwipeCount() == 0) {
              restoreViewPresentations(mDismissedViews);
              notifyCallback(mDismissedPositions);
  
              Collection<Integer> newUndoPositions = Util.processDeletions(mUndoPositions, mDismissedPositions);
              mUndoPositions.clear();
              mUndoPositions.addAll(newUndoPositions);
  
              mDismissedViews.clear();
              mDismissedPositions.clear();
          }
      }
docs: If necessary, notifies the {@link UndoCallback} to remove dismissed object from the adapter,
  and restores the {@link android.view.View} presentations.