Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

红米note9 多次执行loadUrl #190

Open
shiner0 opened this issue Jun 6, 2022 · 0 comments
Open

红米note9 多次执行loadUrl #190

shiner0 opened this issue Jun 6, 2022 · 0 comments

Comments

@shiner0
Copy link

shiner0 commented Jun 6, 2022

在h5页面通过PictureSelector这个库打开相册选择照片回来之后会再次执行loadUrl 刷新页面 导致h5 注册的交互失效

@Override
public void loadUrl(final String url) {
    runOnMainThread(new Runnable() {
        @Override
        public void run() {
            callInfoList = new ArrayList<>();
            DWebView.super.loadUrl(url);
        }
    });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant