mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Add IPlugin to isPhoneGapPlugin check
This commit is contained in:
parent
522a7225db
commit
08963b5e5f
@ -140,7 +140,7 @@ public final class PluginManager {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private boolean isPhoneGapPlugin(Class c) {
|
private boolean isPhoneGapPlugin(Class c) {
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
return com.phonegap.api.Plugin.class.isAssignableFrom(c);
|
return com.phonegap.api.Plugin.class.isAssignableFrom(c) || com.phonegap.api.IPlugin.class.isAssignableFrom(c);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user