forked from github/cordova-android
Need to call pluginManager.onDestroy() to clean up plugins.
This commit is contained in:
parent
5c48ccd92a
commit
c8a521c182
@ -26,7 +26,6 @@ import org.apache.cordova.api.IPlugin;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
|
public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
|
||||||
|
|
||||||
@ -48,7 +47,9 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
|
|||||||
public void onDestroy()
|
public void onDestroy()
|
||||||
{
|
{
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
//phoneGap.onDestroy();
|
if (phoneGap.pluginManager != null) {
|
||||||
|
phoneGap.pluginManager.onDestroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user