Commit d063f14c by 严久程

我的动态点击闪退修复

parents 9038e39e 404096c7
...@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule { ...@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule {
String APP_DOMAIN = "https://api.github.com/"; String APP_DOMAIN = "https://api.github.com/";
// public static String appEnv = YDLConstants.ENV_AUTO_TEST; // public static String appEnv = YDLConstants.ENV_AUTO_TEST;
// public static String appEnv = YDLConstants.ENV_TEST; // public static String appEnv = YDLConstants.ENV_TEST;
public static String appEnv = YDLConstants.ENV_TEST; public static String appEnv = YDLConstants.ENV_PROD;
@Override @Override
public void injectAppLifecycle(@NotNull Context context, @NotNull List<IAppLifecycles> lifecycles) { public void injectAppLifecycle(@NotNull Context context, @NotNull List<IAppLifecycles> lifecycles) {
......
...@@ -52,7 +52,7 @@ ext { ...@@ -52,7 +52,7 @@ ext {
"m-muse" : "0.0.20.4", "m-muse" : "0.0.20.4",
"m-tests" : "0.0.15.3", "m-tests" : "0.0.15.3",
"m-course" : "0.0.34.4", "m-course" : "0.0.34.4",
"m-im" : "0.0.3.7", "m-im" : "0.0.3.8",
"m-dynamic" : "0.0.1.6", "m-dynamic" : "0.0.1.6",
......
...@@ -125,15 +125,13 @@ public class MsgListAdapter extends CommonAdapter<MsgData> { ...@@ -125,15 +125,13 @@ public class MsgListAdapter extends CommonAdapter<MsgData> {
ToastHelper.Companion.show(msg); ToastHelper.Companion.show(msg);
} }
}); });
return;//如果是动态消息则到此结束,其它消息类型走下面流程 //如果是动态消息则到此结束,其它消息类型走下面流程
} }else {
((BaseActivity) context).showProgressDialog("正在中转");
Disposable di = httpHelper.getMsgDetail(new MsgDetailParam(mDataList.get(position).id)) Disposable di = httpHelper.getMsgDetail(new MsgDetailParam(mDataList.get(position).id))
.compose(RxUtils.applySchedulers(lifecycleable)) .compose(RxUtils.applySchedulers(lifecycleable))
.compose(RxUtils.resultData()) .compose(RxUtils.resultData())
.subscribe(msgDetail -> { .subscribe(msgDetail -> {
mDataList.get(position).is_read = 2; mDataList.get(position).is_read = 2;
((BaseActivity) context).dismissProgressDialog();
EventBus.getDefault().post(new UpdateTabUnreadNumEvent()); EventBus.getDefault().post(new UpdateTabUnreadNumEvent());
switch (msgDetail.type) { switch (msgDetail.type) {
case 1: case 1:
...@@ -182,6 +180,9 @@ public class MsgListAdapter extends CommonAdapter<MsgData> { ...@@ -182,6 +180,9 @@ public class MsgListAdapter extends CommonAdapter<MsgData> {
ToastHelper.Companion.show(msg); ToastHelper.Companion.show(msg);
} }
}); });
}
} }
}); });
return convertView; return convertView;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment