remove useless try catch.
This commit is contained in:
parent
feafd6a835
commit
670863a2d5
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue