Skip to content

Commit b7df708

Browse files
committed
update demo
1 parent 0bbf2fa commit b7df708

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PluginMain/src/com/example/pluginmain/MainActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ public void onClick(View v) {
132132
startActivity(intent);
133133
} else {
134134
//打开插件的Launcher界面
135-
//测向插件中传参数
136-
launchIntent.putExtra("paramVO", new SharePOJO("宿主传过来的测试VO"));
135+
if (!pluginDescriptor.isStandalone()) {
136+
//测试向非独立插件传宿主中定义的VO对象
137+
launchIntent.putExtra("paramVO", new SharePOJO("宿主传过来的测试VO"));
138+
}
137139
startActivity(launchIntent);
138140
}
139141

0 commit comments

Comments
 (0)