Commit b084598c authored by Administrator's avatar Administrator

remove weakReference

parent 2f43b8e2
......@@ -143,16 +143,16 @@ public class SwipeUtils {
}
static class ViewHandler extends Handler {
WeakReference<ViewImage> mView;
ViewImage mView;
ViewHandler(ViewImage activity) {
super(Looper.getMainLooper());
mView = new WeakReference<>(activity);
mView = activity;
}
@Override
public void handleMessage(Message msg) {
ViewImage theView = mView.get();
ViewImage theView = mView;
if (theView == null) {
Log.e(SuperAppium.TAG, "scroll view has bean destroyed");
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