Commit 4fe87aa7 by 范玉宾

format code & remove constant

parent 255aa6b4
...@@ -47,10 +47,10 @@ class ConfideHomeRecycleViewListener() : RecyclerView.OnScrollListener() { ...@@ -47,10 +47,10 @@ class ConfideHomeRecycleViewListener() : RecyclerView.OnScrollListener() {
} }
} }
if (dy>0 && visible){ if (dy > 0 && visible) {
visible = false visible = false
listener.onHide() listener.onHide()
}else if (dy<0 && !visible){ } else if (dy < 0 && !visible) {
visible = true visible = true
listener.onShow() listener.onShow()
} }
......
...@@ -143,30 +143,27 @@ public class ConfideOrderInfoView extends RelativeLayout { ...@@ -143,30 +143,27 @@ public class ConfideOrderInfoView extends RelativeLayout {
} }
}); });
String R_CONFIDE_HOME = "/confide/home";
//点击整个view,跳转订单详情页面 //点击整个view,跳转订单详情页面
setOnClickListener(view -> { setOnClickListener(view -> {
if (Utils.isFastClick()){ if (Utils.isFastClick()) {
return; return;
} }
String remainTime = ActionHandlerStorage.getL(mSessionId).getInfo().listenOrderRemainTime; String remainTime = ActionHandlerStorage.getL(mSessionId).getInfo().listenOrderRemainTime;
if(TextUtils.isEmpty(remainTime)){ if (TextUtils.isEmpty(remainTime)) {
Pair<String,String> confideId = new Pair<>(IYDLRouterConstant.EXTRA_CONFIDEDID, Pair<String, String> confideId = new Pair<>(IYDLRouterConstant.EXTRA_CONFIDEDID,
info.listenerId); info.listenerId);
Pair<String,String> doctorId = new Pair<>(IYDLRouterConstant.EXTRA_DOCTORID, Pair<String, String> doctorId = new Pair<>(IYDLRouterConstant.EXTRA_DOCTORID,
info.doctorId); info.doctorId);
route(getContext(),R_CONFIDE_HOME,confideId,doctorId); route(getContext(), ConfideRoute.R_CONFIDE_HOME, confideId, doctorId);
}else { } else {
if (info!=null){ if (info != null) {
String confideId = info.listenerId; String confideId = info.listenerId;
findRouteService(IConfideService.class) findRouteService(IConfideService.class)
.showExpertDetailDialog( .showExpertDetailDialog(
(FragmentActivity)mContext, (FragmentActivity) mContext,
HttpConfig.Companion.getMH5_URL() + ConfideRoute.INSTANCE.h5ConfideIntro(confideId), HttpConfig.Companion.getMH5_URL() + ConfideRoute.INSTANCE.h5ConfideIntro(confideId),
info.doctorId, info.doctorId,
info.toUid); info.toUid);
......
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