Commit c280888b authored by Administrator's avatar Administrator

兼容 1.7 & 正式发布1.0.5

parent d8f8201a
......@@ -152,14 +152,14 @@ public class SwipeUtils {
@Override
public void handleMessage(Message msg) {
ViewImage theView = mView.get();
final ViewImage theView = mView.get();
if (theView == null) {
Log.e(SuperAppium.TAG, "scroll view has bean destroyed");
isScrolling = false;
return;
}
GestureBean bean = (GestureBean) msg.obj;
final GestureBean bean = (GestureBean) msg.obj;
long count = bean.count;
if (count >= bean.totalCount) {
theView.dispatchPointerEvent(genFingerEvent(MotionEvent.ACTION_MOVE, bean.endX, bean.endY));
......@@ -196,8 +196,8 @@ public class SwipeUtils {
if (upEarly) {
theView.dispatchPointerEvent(genFingerEvent(MotionEvent.ACTION_MOVE, x, y));
float finalX = x;
float finalY = y;
final float finalX = x;
final float finalY = y;
new Handler(Looper.myLooper()).post(
new Runnable() {
@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