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

timob-12425: Android: WebView: the "load" event is fired twice if setHtml() is called before the window opens #3813

Merged
merged 2 commits into from Feb 8, 2013

Conversation

pingwang2011
Copy link
Contributor

@ghost ghost assigned hieupham007 Jan 30, 2013
// view is created.
if (peekView() != null) {
if (TiApplication.isUIThread()) {
getWebView().setHtml(html, d);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getWebView() and peekView() seems to return the same view. No need to call it twice.

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested. Looks good. Left a minor comment.

@pingwang2011
Copy link
Contributor Author

Updated.

@hieupham007
Copy link
Contributor

Code reviewed and functionally tested. Request accepted.

hieupham007 added a commit that referenced this pull request Feb 8, 2013
timob-12425: Android: WebView: the "load" event is fired twice if setHtml() is called before the window opens
@hieupham007 hieupham007 merged commit 1f9bafe into tidev:master Feb 8, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants