|
|
@@ -411,8 +411,13 @@ public class HomeOrderFragment extends BaseFragment { |
|
|
|
NewToastUtil.getInstance().showToast("删除成功"); |
|
|
|
xCom.dismissX(); |
|
|
|
|
|
|
|
|
|
|
|
if(status==1){ |
|
|
|
stopCooking(); |
|
|
|
if(type==0){ |
|
|
|
stopCooking(); |
|
|
|
}else{ |
|
|
|
stopCooking2(); |
|
|
|
} |
|
|
|
} |
|
|
|
EventBus.getDefault().post(new FreshOrderEvent()); |
|
|
|
}); |
|
|
@@ -680,7 +685,7 @@ public class HomeOrderFragment extends BaseFragment { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 开始制作 |
|
|
|
* 取消订单 炒锅 |
|
|
|
*/ |
|
|
|
private void stopCooking(){ |
|
|
|
ExecuteTheRecipe.IsForcedEnd = true; |
|
|
@@ -689,6 +694,16 @@ public class HomeOrderFragment extends BaseFragment { |
|
|
|
ExecuteTheRecipe.IsStart = false; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 取消订单 烤箱 |
|
|
|
*/ |
|
|
|
private void stopCooking2(){ |
|
|
|
ExecuteTheRecipe.IsForcedEnd2 = true; |
|
|
|
ExecuteTheRecipe.IsPause2 = false; |
|
|
|
ExecuteTheRecipe.MakeStatus2 = false; |
|
|
|
ExecuteTheRecipe.IsStart2 = false; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void onPause() { |
|
|
|