remove a useless try catch

This commit is contained in:
linfaxin 2015-04-08 10:21:36 +08:00
parent 79bb4ecb36
commit 0e0390c1ff
1 changed files with 1 additions and 6 deletions

View File

@ -1199,12 +1199,7 @@ public class SwipeLayout extends FrameLayout {
protected void processHandRelease(float xvel, float yvel, boolean isCloseBeforeDragged) {
float minVelocity = mDragHelper.getMinVelocity();
View surfaceView = getSurfaceView();
DragEdge currentDragEdge = null;
try {
currentDragEdge = mCurrentDragEdge;
} catch (Exception e) {
e.printStackTrace();
}
DragEdge currentDragEdge = mCurrentDragEdge;
if(currentDragEdge == null || surfaceView == null){
return;
}