mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-12 18:56:11 +08:00
CB-5917 Add a loadUrlIntoView overload that doesn't recreate plugins.
This commit is contained in:
parent
f4b1d09407
commit
6760d0378a
@ -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 + ")");
|
||||||
|
|
||||||
|
if (recreatePlugins) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.pluginManager.init();
|
this.pluginManager.init();
|
||||||
|
}
|
||||||
|
|
||||||
// Create a timeout timer for loadUrl
|
// Create a timeout timer for loadUrl
|
||||||
final CordovaWebView me = this;
|
final CordovaWebView me = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user