File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
library/src/main/java/com/lcodecore/tkrefreshlayout Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ public boolean consumeTouchEvent(MotionEvent e) {
45
45
switch (e .getAction ()) {
46
46
case MotionEvent .ACTION_MOVE :
47
47
float dy = e .getY () - mTouchY ;
48
-
49
48
if (cp .isStatePTD ()) {
50
49
dy = Math .min (cp .getMaxHeadHeight () * 2 , dy );
51
50
dy = Math .max (0 , dy );
Original file line number Diff line number Diff line change @@ -177,11 +177,10 @@ public boolean onInterceptTouchEvent(MotionEvent ev) {
177
177
178
178
@ Override
179
179
public boolean onTouchEvent (MotionEvent e ) {
180
- boolean resume = cp .consumeTouchEvent (e );
181
- return resume || super .onTouchEvent (e );
180
+ boolean consume = cp .consumeTouchEvent (e );
181
+ return consume || super .onTouchEvent (e );
182
182
}
183
183
184
-
185
184
/*************************************
186
185
* 开放api区
187
186
*****************************************/
You can’t perform that action at this time.
0 commit comments