Skip to content

Commit ea0398d

Browse files
committed
code format
Signed-off-by: limpoxe <405977146@163.com>
1 parent 3e7b5e7 commit ea0398d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

PluginCore/src/com/plugin/core/proxy/PluginProxyActivity.java

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
import com.plugin.util.RefInvoker;
2020

2121
/**
22-
* activity代理, 不建议使用代理模式 建议使用stub模式
22+
* activity代理, 不建议使用代理模式
23+
*
24+
* 已放弃
25+
*
2326
* @author cailiming
2427
*/
2528
@Deprecated
@@ -48,13 +51,14 @@ public void onCreate(Bundle savedInstanceState) {
4851
RefInvoker.invokeMethod(activity, Activity.class.getName(), "onCreate", new Class[] { Bundle.class },
4952
new Object[] { savedInstanceState });
5053
}
51-
52-
protected void onPostCreate(Bundle savedInstanceState) {
53-
super.onPostCreate(savedInstanceState);
54+
55+
@Override
56+
protected void onPostCreate(Bundle savedInstanceState) {
57+
super.onPostCreate(savedInstanceState);
5458
RefInvoker.invokeMethod(activity, Activity.class.getName(), "onPostCreate", new Class[] { Bundle.class },
5559
new Object[] { savedInstanceState });
56-
}
57-
60+
}
61+
5862
private Context findPluginContext() {
5963
String classId = getIntent().getStringExtra(PluginFragmentHelper.ACTIVITY_ID_IN_PLUGIN);
6064
LogUtil.d("findPluginContext ", classId);
@@ -139,12 +143,12 @@ protected void onResume() {
139143
super.onResume();
140144
RefInvoker.invokeMethod(activity, Activity.class.getName(), "onResume", new Class[] {}, new Object[] {});
141145
}
142-
143-
@Override
144-
protected void onPostResume() {
145-
super.onPostResume();
146-
RefInvoker.invokeMethod(activity, Activity.class.getName(), "onPostResume", new Class[] {}, new Object[] {});
147-
}
146+
147+
@Override
148+
protected void onPostResume() {
149+
super.onPostResume();
150+
RefInvoker.invokeMethod(activity, Activity.class.getName(), "onPostResume", new Class[] {}, new Object[] {});
151+
}
148152

149153
@Override
150154
protected void onPause() {
@@ -205,7 +209,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
205209
RefInvoker.invokeMethod(activity, Activity.class.getName(), "onActivityResult", new Class[] { Integer.class,
206210
Integer.class, Intent.class, }, new Object[] { requestCode, resultCode, data });
207211
}
208-
212+
209213
/**
210214
* 这里需要attach的值 根据不同的android版本和厂商版本,可能会有所不同 需要实际测试后才能保证兼容
211215
*

0 commit comments

Comments
 (0)