Commit 4fe87aa7 by 范玉宾

format code & remove constant

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