|
|
@@ -421,6 +421,10 @@ public class GoodsEditView extends LinearLayout { |
|
|
|
|
|
|
|
@Override |
|
|
|
protected void onCopy(int position, BPA_GOODSRECIPENAME bean) { |
|
|
|
if(isFast2Click()){ |
|
|
|
ToastUtils.info("请勿快速点击!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(copyRecipeDialog == null){ |
|
|
|
copyRecipeDialog = new CopyRecipeDialog(); |
|
|
|
} |
|
|
@@ -463,6 +467,20 @@ public class GoodsEditView extends LinearLayout { |
|
|
|
viewBinding.recyclerDetail.setAdapter(groupAdapter); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 判断重复点击 |
|
|
|
*/ |
|
|
|
private long lastTime2; |
|
|
|
|
|
|
|
public boolean isFast2Click(){ |
|
|
|
long curTime = System.currentTimeMillis(); |
|
|
|
if(curTime - lastTime2 < 1000){ |
|
|
|
return true; |
|
|
|
} |
|
|
|
lastTime2 = curTime; |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 销毁 |
|
|
|
*/ |
|
|
|