remove useless try catch.

This commit is contained in:
daimajia 2015-04-08 08:45:29 +08:00
parent feafd6a835
commit 670863a2d5
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) { protected void processHandRelease(float xvel, float yvel, boolean isCloseBeforeDragged) {
float minVelocity = mDragHelper.getMinVelocity(); float minVelocity = mDragHelper.getMinVelocity();
View surfaceView = getSurfaceView(); View surfaceView = getSurfaceView();
DragEdge currentDragEdge = null; DragEdge currentDragEdge = mCurrentDragEdge;
try {
currentDragEdge = mCurrentDragEdge;
} catch (Exception e) {
e.printStackTrace();
}
if(currentDragEdge == null || surfaceView == null){ if(currentDragEdge == null || surfaceView == null){
return; return;
} }