private void setPanelStateInternal(PanelState state) {
        if (mSlideState == state) return;
        PanelState oldState = mSlideState;
        mSlideState = state;
        dispatchOnPanelStateChanged(this, oldState, state);
    }
Change panel state to the given state with

@param state - new panel state
app/src/main/java/home/smart/fly/animations/widget/slidepanel/SlidingUpPanelLayout.java