CB-5917 Add a loadUrlIntoView overload that doesn't recreate plugins.

This commit is contained in:
Andrew Grieve 2014-01-28 10:29:56 -05:00
parent c42cd4233d
commit ac2034561d

View File

@ -445,17 +445,22 @@ public class CordovaWebView extends WebView {
}
}
public void loadUrlIntoView(final String url) {
loadUrlIntoView(url, true);
}
/**
* Load the url into the webview.
*
* @param url
*/
public void loadUrlIntoView(final String url) {
public void loadUrlIntoView(final String url, boolean recreatePlugins) {
LOG.d(TAG, ">>> loadUrl(" + url + ")");
if (recreatePlugins) {
this.url = url;
this.pluginManager.init();
}
// Create a timeout timer for loadUrl
final CordovaWebView me = this;