mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
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.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
|
||||
public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
|
||||
|
||||
@ -48,7 +47,9 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
|
||||
public void onDestroy()
|
||||
{
|
||||
super.onDestroy();
|
||||
//phoneGap.onDestroy();
|
||||
if (phoneGap.pluginManager != null) {
|
||||
phoneGap.pluginManager.onDestroy();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user