|
19 | 19 | import com.plugin.util.RefInvoker;
|
20 | 20 |
|
21 | 21 | /**
|
22 |
| - * activity代理, 不建议使用代理模式 建议使用stub模式 |
| 22 | + * activity代理, 不建议使用代理模式 |
| 23 | + * |
| 24 | + * 已放弃 |
| 25 | + * |
23 | 26 | * @author cailiming
|
24 | 27 | */
|
25 | 28 | @Deprecated
|
@@ -48,13 +51,14 @@ public void onCreate(Bundle savedInstanceState) {
|
48 | 51 | RefInvoker.invokeMethod(activity, Activity.class.getName(), "onCreate", new Class[] { Bundle.class },
|
49 | 52 | new Object[] { savedInstanceState });
|
50 | 53 | }
|
51 |
| - |
52 |
| - protected void onPostCreate(Bundle savedInstanceState) { |
53 |
| - super.onPostCreate(savedInstanceState); |
| 54 | + |
| 55 | + @Override |
| 56 | + protected void onPostCreate(Bundle savedInstanceState) { |
| 57 | + super.onPostCreate(savedInstanceState); |
54 | 58 | RefInvoker.invokeMethod(activity, Activity.class.getName(), "onPostCreate", new Class[] { Bundle.class },
|
55 | 59 | new Object[] { savedInstanceState });
|
56 |
| - } |
57 |
| - |
| 60 | + } |
| 61 | + |
58 | 62 | private Context findPluginContext() {
|
59 | 63 | String classId = getIntent().getStringExtra(PluginFragmentHelper.ACTIVITY_ID_IN_PLUGIN);
|
60 | 64 | LogUtil.d("findPluginContext ", classId);
|
@@ -139,12 +143,12 @@ protected void onResume() {
|
139 | 143 | super.onResume();
|
140 | 144 | RefInvoker.invokeMethod(activity, Activity.class.getName(), "onResume", new Class[] {}, new Object[] {});
|
141 | 145 | }
|
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 | + } |
148 | 152 |
|
149 | 153 | @Override
|
150 | 154 | protected void onPause() {
|
@@ -205,7 +209,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
205 | 209 | RefInvoker.invokeMethod(activity, Activity.class.getName(), "onActivityResult", new Class[] { Integer.class,
|
206 | 210 | Integer.class, Intent.class, }, new Object[] { requestCode, resultCode, data });
|
207 | 211 | }
|
208 |
| - |
| 212 | + |
209 | 213 | /**
|
210 | 214 | * 这里需要attach的值 根据不同的android版本和厂商版本,可能会有所不同 需要实际测试后才能保证兼容
|
211 | 215 | *
|
|
0 commit comments