Commit b084598c authored by Administrator's avatar Administrator

remove weakReference

parent 2f43b8e2
...@@ -143,16 +143,16 @@ public class SwipeUtils { ...@@ -143,16 +143,16 @@ public class SwipeUtils {
} }
static class ViewHandler extends Handler { static class ViewHandler extends Handler {
WeakReference<ViewImage> mView; ViewImage mView;
ViewHandler(ViewImage activity) { ViewHandler(ViewImage activity) {
super(Looper.getMainLooper()); super(Looper.getMainLooper());
mView = new WeakReference<>(activity); mView = activity;
} }
@Override @Override
public void handleMessage(Message msg) { public void handleMessage(Message msg) {
ViewImage theView = mView.get(); ViewImage theView = mView;
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;
......
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