@Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);

        if (MenuDrawer.USE_TRANSLATIONS && mHardwareLayersEnabled) {
            post(new Runnable() {
                @Override
                public void run() {
                    mChanged = true;
                    invalidate();
                }
            });
        }
    }
FrameLayout which caches the hardware layer if available.
<p/>
If it's not posted twice the layer either wont be built on start, or it'll be built twice.
menudrawer/src/net/simonvt/menudrawer/BuildLayerFrameLayout.java