[Demonstration 1]

[Buggy Method]
public void close(boolean animated) {
    // If animations are enabled and we have a MenuAnimationHandler, let it do the heavy work
    if (animated && animationHandler != null) {
        if (animationHandler.isAnimating()) {
            // Do not proceed if there is an animation currently going on.
            return;
        }
        animationHandler.animateMenuClosing(getActionViewCenter());
    } else {
        // If animations are disabled, just detach each of the Item views from the Activity content view.
        for (int i = 0; i < subActionItems.size(); i++) {
            removeViewFromCurrentContainer(subActionItems.get(i).view);
        }
        detachOverlayContainer();
    }
    // do not forget to specify that the menu is now closed.
    open = false;
    if (stateChangeListener != null) {
        stateChangeListener.onMenuClosed(this);
    }
}

[Buggy Hunk]
detachOverlayContainer();

[Patch]
if (isSystemOverlay())  detachOverlayContainer();

[Demonstration 2]

[Buggy Method]
public boolean removeView(int index) {
    if (index < enabled_views.size()) {
        View view = enabled_views.get(index);
        try {
            this.getWindowManager().removeView(view);
            enabled_views.remove(index);
            return true;
        } catch (Exception ex) {
            LaratException.reportException(ex);
            return false;
        }
    }
    return false;
}

[Buggy Hunk]
this.getWindowManager().removeView(view);

[Patch]
this.windowManager.removeView(view);