add brackets
This commit is contained in:
parent
168d4d435e
commit
1c01f6d4d3
|
|
@ -1571,13 +1571,16 @@ public class SwipeLayout extends FrameLayout {
|
|||
if (currentBottomView != null) {
|
||||
if (mCurrentDragEdge == DragEdge.Left || mCurrentDragEdge == DragEdge.Right) {
|
||||
mDragDistance = currentBottomView.getMeasuredWidth() - dp2px(getCurrentOffset());
|
||||
} else
|
||||
} else {
|
||||
mDragDistance = currentBottomView.getMeasuredHeight() - dp2px(getCurrentOffset());
|
||||
}
|
||||
}
|
||||
|
||||
if (mShowMode == ShowMode.PullOut)
|
||||
if (mShowMode == ShowMode.PullOut) {
|
||||
layoutPullOut();
|
||||
else if (mShowMode == ShowMode.LayDown) layoutLayDown();
|
||||
} else if (mShowMode == ShowMode.LayDown) {
|
||||
layoutLayDown();
|
||||
}
|
||||
|
||||
safeBottomView();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue