mirror of
https://github.com/DroidPluginTeam/DroidPlugin.git
synced 2026-10-17 04:30:34 +08:00
bugfix: 23.
url:https://github.com/Qihoo360/DroidPlugin/issues/23 一些apk还是无法运行的问题。
This commit is contained in:
+6
-6
@@ -84,12 +84,6 @@ public class PluginInstrumentation extends Instrumentation {
|
||||
}
|
||||
}
|
||||
|
||||
if (mTarget != null) {
|
||||
mTarget.callActivityOnCreate(activity, icicle);
|
||||
} else {
|
||||
super.callActivityOnCreate(activity, icicle);
|
||||
}
|
||||
|
||||
try {
|
||||
mOldContext = null;
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && PluginManager.getInstance().isPluginPackage(activity.getPackageName())) {
|
||||
@@ -99,6 +93,12 @@ public class PluginInstrumentation extends Instrumentation {
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if (mTarget != null) {
|
||||
mTarget.callActivityOnCreate(activity, icicle);
|
||||
} else {
|
||||
super.callActivityOnCreate(activity, icicle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user