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 f4b1d09407
commit 6760d0378a

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. * Load the url into the webview.
* *
* @param url * @param url
*/ */
public void loadUrlIntoView(final String url) { public void loadUrlIntoView(final String url, boolean recreatePlugins) {
LOG.d(TAG, ">>> loadUrl(" + url + ")"); LOG.d(TAG, ">>> loadUrl(" + url + ")");
this.url = url; if (recreatePlugins) {
this.pluginManager.init(); this.url = url;
this.pluginManager.init();
}
// Create a timeout timer for loadUrl // Create a timeout timer for loadUrl
final CordovaWebView me = this; final CordovaWebView me = this;