Commit c280888b authored by Administrator's avatar Administrator

兼容 1.7 & 正式发布1.0.5

parent d8f8201a
...@@ -152,14 +152,14 @@ public class SwipeUtils { ...@@ -152,14 +152,14 @@ public class SwipeUtils {
@Override @Override
public void handleMessage(Message msg) { public void handleMessage(Message msg) {
ViewImage theView = mView.get(); final ViewImage theView = mView.get();
if (theView == null) { if (theView == null) {
Log.e(SuperAppium.TAG, "scroll view has bean destroyed"); Log.e(SuperAppium.TAG, "scroll view has bean destroyed");
isScrolling = false; isScrolling = false;
return; return;
} }
GestureBean bean = (GestureBean) msg.obj; final GestureBean bean = (GestureBean) msg.obj;
long count = bean.count; long count = bean.count;
if (count >= bean.totalCount) { if (count >= bean.totalCount) {
theView.dispatchPointerEvent(genFingerEvent(MotionEvent.ACTION_MOVE, bean.endX, bean.endY)); theView.dispatchPointerEvent(genFingerEvent(MotionEvent.ACTION_MOVE, bean.endX, bean.endY));
...@@ -196,8 +196,8 @@ public class SwipeUtils { ...@@ -196,8 +196,8 @@ public class SwipeUtils {
if (upEarly) { if (upEarly) {
theView.dispatchPointerEvent(genFingerEvent(MotionEvent.ACTION_MOVE, x, y)); theView.dispatchPointerEvent(genFingerEvent(MotionEvent.ACTION_MOVE, x, y));
float finalX = x; final float finalX = x;
float finalY = y; final float finalY = y;
new Handler(Looper.myLooper()).post( new Handler(Looper.myLooper()).post(
new Runnable() { new Runnable() {
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment