add brackets

This commit is contained in:
daimajia 2015-06-11 21:39:51 +08:00
parent 168d4d435e
commit 1c01f6d4d3
1 changed files with 6 additions and 3 deletions

View File

@ -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();
}