@Override
                public boolean onTouch(View v, MotionEvent event) {
                    for (int i = BaseDialog.getRunningDialogList().size() - 1; i >= 0; i--) {
                        BaseDialog baseDialog = BaseDialog.getRunningDialogList().get(i);
                        if (!(baseDialog instanceof NoTouchInterface) && baseDialog.getOwnActivity() == activity) {
                            if (baseDialog.getDialogView() == null) {
                                return false;
                            }
                            return baseDialog.dispatchTouchEvent(event);
                        }
                    }
                    return activity.dispatchTouchEvent(event);
                }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2021/4/29 16:02
DialogX/src/main/java/com/kongzue/dialogx/util/WindowUtil.java