Merge "Check for isAttachedToWindow before dispatching touch event" into main
This commit is contained in:
@@ -194,6 +194,7 @@ public class NearestTouchFrame extends FrameLayout {
|
||||
event.offsetLocation(mTouchingChild.getWidth() / 2 - x,
|
||||
mTouchingChild.getHeight() / 2 - y);
|
||||
return mTouchingChild.getVisibility() == VISIBLE
|
||||
&& mTouchingChild.isAttachedToWindow()
|
||||
&& mTouchingChild.dispatchTouchEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user