mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 01:53:00 +08:00
Log a message when exec() is made to an unregistered plugin.
This commit is contained in:
parent
f60d54eae4
commit
0c74090953
@ -30,6 +30,7 @@ import org.xmlpull.v1.XmlPullParserException;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.res.XmlResourceParser;
|
import android.content.res.XmlResourceParser;
|
||||||
|
|
||||||
|
import android.util.Log;
|
||||||
import android.webkit.WebResourceResponse;
|
import android.webkit.WebResourceResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -213,6 +214,7 @@ public class PluginManager {
|
|||||||
public boolean exec(String service, String action, String callbackId, String rawArgs) {
|
public boolean exec(String service, String action, String callbackId, String rawArgs) {
|
||||||
CordovaPlugin plugin = this.getPlugin(service);
|
CordovaPlugin plugin = this.getPlugin(service);
|
||||||
if (plugin == null) {
|
if (plugin == null) {
|
||||||
|
Log.d(TAG, "exec() call to unknown plugin: " + service);
|
||||||
PluginResult cr = new PluginResult(PluginResult.Status.CLASS_NOT_FOUND_EXCEPTION);
|
PluginResult cr = new PluginResult(PluginResult.Status.CLASS_NOT_FOUND_EXCEPTION);
|
||||||
app.sendPluginResult(cr, callbackId);
|
app.sendPluginResult(cr, callbackId);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user