public static void rebuildStickyFooterView(final DrawerBuilder drawer) {
        if (drawer.mSliderLayout != null) {
            if (drawer.mStickyFooterView != null) {
                drawer.mStickyFooterView.removeAllViews();

                //create the divider
                if (drawer.mStickyFooterDivider) {
                    addStickyFooterDivider(drawer.mStickyFooterView.getContext(), drawer.mStickyFooterView);
                }

                //fill the footer with items
                DrawerUtils.fillStickyDrawerItemFooter(drawer, drawer.mStickyFooterView, new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        IDrawerItem drawerItem = (IDrawerItem) v.getTag(R.id.material_drawer_item);
                        com.mikepenz.materialdrawer.DrawerUtils.onFooterDrawerItemClick(drawer, drawerItem, v, true);
                    }
                });

                drawer.mStickyFooterView.setVisibility(View.VISIBLE);
            } else {
                //there was no footer yet. now just create one
                DrawerUtils.handleFooterView(drawer, new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        IDrawerItem drawerItem = (IDrawerItem) v.getTag(R.id.material_drawer_item);
                        DrawerUtils.onFooterDrawerItemClick(drawer, drawerItem, v, true);
                    }
                });
            }

            setStickyFooterSelection(drawer, drawer.mCurrentStickyFooterSelection, false);
        }
    }
public static void rebuildStickyFooterView ( final DrawerBuilder drawer ) { if ( drawer . mSliderLayout != null ) { if ( drawer . mStickyFooterView != null ) { drawer . mStickyFooterView . removeAllViews ( ) ; if ( drawer . mStickyFooterDivider ) { addStickyFooterDivider ( drawer . mStickyFooterView . getContext ( ) , drawer . mStickyFooterView ) ; } DrawerUtils . fillStickyDrawerItemFooter ( drawer , drawer . mStickyFooterView , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { IDrawerItem drawerItem = ( IDrawerItem ) v . getTag ( R . id . material_drawer_item ) ; com . mikepenz . materialdrawer . DrawerUtils . onFooterDrawerItemClick ( drawer , drawerItem , v , true ) ; } } ) ; drawer . mStickyFooterView . setVisibility ( View . VISIBLE ) ; } else { DrawerUtils . handleFooterView ( drawer , new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { IDrawerItem drawerItem = ( IDrawerItem ) v . getTag ( R . id . material_drawer_item ) ; DrawerUtils . onFooterDrawerItemClick ( drawer , drawerItem , v , true ) ; } } ) ; } setStickyFooterSelection ( drawer , drawer . mCurrentStickyFooterSelection , false ) ; } }
small helper to rebuild the FooterView

@param drawer