|
|
@@ -28,6 +28,13 @@ public class AerationStepAdapter extends BaseQuickAdapter<ProcessStepBean, BaseV
|
|
28
|
28
|
|
|
29
|
29
|
private int maxClickIndex = 0;
|
|
30
|
30
|
|
|
|
31
|
+ private String pageType = "add";
|
|
|
32
|
+
|
|
|
33
|
+ public void setPageType(String pageType) {
|
|
|
34
|
+ if (pageType == null) return;
|
|
|
35
|
+ this.pageType = pageType;
|
|
|
36
|
+ }
|
|
|
37
|
+
|
|
31
|
38
|
private SwitchCallback mSwitchCallback;
|
|
32
|
39
|
|
|
33
|
40
|
|
|
|
@@ -68,6 +75,9 @@ public class AerationStepAdapter extends BaseQuickAdapter<ProcessStepBean, BaseV
|
|
68
|
75
|
|
|
69
|
76
|
holder.itemView.setTag(item);
|
|
70
|
77
|
holder.itemView.setOnClickListener(v -> {
|
|
|
78
|
+ // 详情时不切换流程
|
|
|
79
|
+ if (pageType.equals("detail")) return;
|
|
|
80
|
+
|
|
71
|
81
|
// 刷新选中项
|
|
72
|
82
|
ProcessStepBean bean = (ProcessStepBean) v.getTag();
|
|
73
|
83
|
int index = getItemPosition(bean);
|