Program: 59047
Project: 59047
Buggy source:
private void loadViewToUnderInteractionLayer(final int iViewID){
  if (iSlerpFactor > 0 && iSlerpFactor < SLERP_RANGE)   return;
  arSlerpActions.clear();
  generalManager.getViewGLCanvasManager().getGLEventListener(iViewID).broadcastElements(ESelectionType.NORMAL);
  if (stackLayer.containsElement(iViewID)) {
    SlerpAction slerpActionTransition=new SlerpAction(iViewID,stackLayer,transitionLayer);
    arSlerpActions.add(slerpActionTransition);
    if (underInteractionLayer.getElementIdByPositionIndex(0) != -1) {
      SlerpAction reverseSlerpAction=new SlerpAction(underInteractionLayer.getElementIdByPositionIndex(0),underInteractionLayer,stackLayer);
      arSlerpActions.add(reverseSlerpAction);
    }
    SlerpAction slerpAction=new SlerpAction(iViewID,transitionLayer,underInteractionLayer);
    arSlerpActions.add(slerpAction);
  }
 else {
    SlerpAction slerpActionTransition=new SlerpAction(iViewID,poolLayer,transitionLayer);
    arSlerpActions.add(slerpActionTransition);
    if (!stackLayer.containsElement(-1)) {
      SlerpAction reverseSlerpAction=new SlerpAction(stackLayer.getElementIdByPositionIndex(stackLayer.getNextPositionIndex()),stackLayer,true);
      arSlerpActions.add(reverseSlerpAction);
      generalManager.getViewGLCanvasManager().getGLEventListener(stackLayer.getElementIdByPositionIndex(stackLayer.getNextPositionIndex())).broadcastElements(ESelectionType.REMOVE);
    }
    SlerpAction reverseSlerpAction2=new SlerpAction(underInteractionLayer.getElementIdByPositionIndex(0),underInteractionLayer,true);
    arSlerpActions.add(reverseSlerpAction2);
    SlerpAction slerpAction=new SlerpAction(iViewID,transitionLayer,underInteractionLayer);
    arSlerpActions.add(slerpAction);
  }
  iSlerpFactor=0;
}

Fixed version (ground truth):
private void loadViewToUnderInteractionLayer(final int iViewID){
  if (iSlerpFactor > 0 && iSlerpFactor < SLERP_RANGE)   return;
  arSlerpActions.clear();
  generalManager.getViewGLCanvasManager().getGLEventListener(iViewID).broadcastElements(ESelectionType.ADD);
  if (stackLayer.containsElement(iViewID)) {
    SlerpAction slerpActionTransition=new SlerpAction(iViewID,stackLayer,transitionLayer);
    arSlerpActions.add(slerpActionTransition);
    if (underInteractionLayer.getElementIdByPositionIndex(0) != -1) {
      SlerpAction reverseSlerpAction=new SlerpAction(underInteractionLayer.getElementIdByPositionIndex(0),underInteractionLayer,stackLayer);
      arSlerpActions.add(reverseSlerpAction);
    }
    SlerpAction slerpAction=new SlerpAction(iViewID,transitionLayer,underInteractionLayer);
    arSlerpActions.add(slerpAction);
  }
 else {
    SlerpAction slerpActionTransition=new SlerpAction(iViewID,poolLayer,transitionLayer);
    arSlerpActions.add(slerpActionTransition);
    if (!stackLayer.containsElement(-1)) {
      SlerpAction reverseSlerpAction=new SlerpAction(stackLayer.getElementIdByPositionIndex(stackLayer.getNextPositionIndex()),stackLayer,true);
      arSlerpActions.add(reverseSlerpAction);
      generalManager.getViewGLCanvasManager().getGLEventListener(stackLayer.getElementIdByPositionIndex(stackLayer.getNextPositionIndex())).broadcastElements(ESelectionType.REMOVE);
    }
    SlerpAction reverseSlerpAction2=new SlerpAction(underInteractionLayer.getElementIdByPositionIndex(0),underInteractionLayer,true);
    arSlerpActions.add(reverseSlerpAction2);
    SlerpAction slerpAction=new SlerpAction(iViewID,transitionLayer,underInteractionLayer);
    arSlerpActions.add(slerpAction);
  }
  iSlerpFactor=0;
}