We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7c783 commit 9ca7d6cCopy full SHA for 9ca7d6c
PluginCore/src/com/plugin/core/PluginLoader.java
@@ -182,6 +182,18 @@ public static Context getPluginContext(@SuppressWarnings("rawtypes") Class clazz
182
return pluginContext;
183
184
}
185
+
186
+ public static Context getNewPluginContext(@SuppressWarnings("rawtypes") Class clazz) {
187
188
+ Context pluginContext = getPluginContext(clazz);
189
190
+ if (pluginContext != null) {
191
+ pluginContext = PluginCreator.createPluginApplicationContext(sApplication,
192
+ pluginContext.getResources(), (DexClassLoader)pluginContext.getClassLoader());
193
+ }
194
195
+ return pluginContext;
196
197
198
/**
199
* 构造插件信息
0 commit comments