mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 12:03:28 +08:00
Don't call loadUrlIntoView on the actvity
This commit is contained in:
parent
a70c8536f9
commit
e2a090bbba
@ -97,7 +97,6 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
|
|||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
if (cordovaWebView != null) {
|
if (cordovaWebView != null) {
|
||||||
// Send destroy event to JavaScript
|
// Send destroy event to JavaScript
|
||||||
cordovaWebView.loadUrl("javascript:try{cordova.require('cordova/channel').onDestroy.fire();}catch(e){console.log('exception firing destroy event from native');};");
|
|
||||||
cordovaWebView.handleDestroy();
|
cordovaWebView.handleDestroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user