Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions library/src/com/sothree/slidinguppanel/SlidingUpPanelLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,20 @@ public boolean collapsePanel() {
return collapsePanel(mSlideableView, 0);
}
}

/**
* Collapse the sliding pane if it is currently slideable.
*
* @return true if the pane was slideable and is now collapsed/in the process of expading
*/
public boolean forceCollapsePanel() {
if (mFirstLayout) {
mSlideState = PanelState.COLLAPSED;
return true;
} else {
return expandPanel(0.0f);
}
}

/**
* Expand the sliding pane if it is currently slideable.
Expand Down