|
@@ -33,7 +33,7 @@ public abstract class BaseMVPFragment extends BaseFragment implements IView {
|
|
|
protected boolean isUIVisible;
|
|
protected boolean isUIVisible;
|
|
|
|
|
|
|
|
private List<Method> mDataMethodList = new ArrayList<>();
|
|
private List<Method> mDataMethodList = new ArrayList<>();
|
|
|
- private List<String> objectParamsList = new ArrayList<>();
|
|
|
|
|
|
|
+ //private List<String> objectParamsList = new ArrayList<>();
|
|
|
private List<BaseViewModel> mInjectPresenters;
|
|
private List<BaseViewModel> mInjectPresenters;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -79,11 +79,11 @@ public abstract class BaseMVPFragment extends BaseFragment implements IView {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 第三个参数的类型
|
|
// 第三个参数的类型
|
|
|
- String objTypeName = method.getGenericParameterTypes()[2].toString();
|
|
|
|
|
|
|
+ /*String objTypeName = method.getGenericParameterTypes()[2].toString();
|
|
|
if (objectParamsList.contains(objTypeName)) {
|
|
if (objectParamsList.contains(objTypeName)) {
|
|
|
throw new AssertionError("第3个参数为" + objTypeName + "的方法有多个,应该合并为一个方法");
|
|
throw new AssertionError("第3个参数为" + objTypeName + "的方法有多个,应该合并为一个方法");
|
|
|
}
|
|
}
|
|
|
- objectParamsList.add(objTypeName);
|
|
|
|
|
|
|
+ objectParamsList.add(objTypeName);*/
|
|
|
|
|
|
|
|
// 数据来源
|
|
// 数据来源
|
|
|
String fourthType = method.getParameterTypes()[3].getSimpleName();
|
|
String fourthType = method.getParameterTypes()[3].getSimpleName();
|
|
@@ -187,7 +187,7 @@ public abstract class BaseMVPFragment extends BaseFragment implements IView {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
mDataMethodList.clear();
|
|
mDataMethodList.clear();
|
|
|
- objectParamsList.clear();
|
|
|
|
|
|
|
+ //objectParamsList.clear();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void onDataResult(DataResult result) {
|
|
private void onDataResult(DataResult result) {
|