|
@@ -206,10 +206,14 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (!getSN().startsWith("000")) {
|
|
|
- binding.tvCount.setGone()
|
|
|
- binding.ivPotCover.setGone()
|
|
|
- }
|
|
|
+ //2023.12.11 000A客户需要隐藏电磁阀
|
|
|
+ binding.tvCount.setGone()
|
|
|
+ binding.ivPotCover.setGone()
|
|
|
+
|
|
|
+// if (!getSN().startsWith("000")) {
|
|
|
+// binding.tvCount.setGone()
|
|
|
+// binding.ivPotCover.setGone()
|
|
|
+// }
|
|
|
|
|
|
turnDevModeUI();
|
|
|
viewModel.modeType = intent.extras?.getString(MODE_TYPE, ModesType.CHOP.name) ?: ""
|
|
@@ -633,13 +637,7 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
if (!initModeData) {
|
|
|
return
|
|
|
}
|
|
|
- Log.d(
|
|
|
- "dddddddd", "targetTime==${event.devInfo.targetTime}" +
|
|
|
- "==remainTime==${event.devInfo.remainTime}==targetTimeBuffer==${event.devInfo.targetTimeBuffer}" +
|
|
|
- "==minTime==${event.devInfo.mode.minTime}==maxTime==${event.devInfo.mode.maxTime}" +
|
|
|
- "===potCloverEleStatus==${currDevInfo.potCloverEleStatus}==minTemp==${event.devInfo.mode.minTemp}" +
|
|
|
- "==maxTemp==${event.devInfo.mode.maxTemp}==minMotorGear==${event.devInfo.mode.minMotorGear}==maxWaterGear==${event.devInfo.mode.maxWaterGear}"
|
|
|
- )
|
|
|
+ Log.d("TAG dddddd","event:"+event.devInfo.toString())
|
|
|
ThreadUtils.runOnMainThread {
|
|
|
currDevInfo = event.devInfo
|
|
|
mRunningState = currDevInfo.runningStatus.toInt()
|
|
@@ -1155,9 +1153,11 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
binding.clSetTime.stopAlphaAnim()
|
|
|
binding.functionLayout.visibility = View.VISIBLE
|
|
|
binding.llWeightView.visibility = View.GONE
|
|
|
- if (getSN().startsWith("000")){
|
|
|
- binding.ivPotCover.setVisible()
|
|
|
- }
|
|
|
+ // 2023.12.11客户需要隐藏
|
|
|
+// if (getSN().startsWith("000")){
|
|
|
+// binding.ivPotCover.setVisible()
|
|
|
+// }
|
|
|
+
|
|
|
if (viewModel.modeType == ModesType.WIGHT.name || viewModel.modeType == ModesType.TURBO.name) {
|
|
|
binding.ivWeight.visibility = View.GONE
|
|
|
binding.ivTurbo.visibility = View.GONE
|
|
@@ -1186,7 +1186,6 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
visibilityEgg(View.GONE)
|
|
|
binding.functionLayout.visibility = View.GONE
|
|
|
binding.llWeightView.visibility = View.VISIBLE
|
|
|
- Log.d("dddddd", "llTurboView===GONE")
|
|
|
binding.llTurboView.visibility = View.GONE
|
|
|
//开始称重
|
|
|
CofarSDK.startWeight()
|
|
@@ -1201,7 +1200,6 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
binding.ivTurbo.visibility = View.GONE
|
|
|
visibilityEgg(View.GONE)
|
|
|
binding.functionLayout.visibility = View.GONE
|
|
|
- Log.d("dddddd", "llTurboView===VISIBLE")
|
|
|
binding.llTurboView.visibility = View.VISIBLE
|
|
|
binding.llWeightView.visibility = View.GONE
|
|
|
}
|
|
@@ -1546,7 +1544,7 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
) {
|
|
|
|
|
|
|
|
|
-// Log.d("TAG updateTimeUI","minTime:$minTime maxTime:$maxTime remainTime:$remainTime targetTime:$targetTime type :$type")
|
|
|
+ Log.d("TAG updateTimeUI","minTime:$minTime maxTime:$maxTime remainTime:$remainTime targetTime:$targetTime isTimeChange:$isTimeChange focusUpdate$focusUpdate type :$type")
|
|
|
|
|
|
this.isTimeChange = isTimeChange
|
|
|
this.maxTime = maxTime.toLong()
|
|
@@ -1772,6 +1770,7 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
binding.apply {
|
|
|
ivWeight.visibility = View.VISIBLE
|
|
|
ivTurbo.visibility = View.VISIBLE
|
|
|
+ visibilityEgg(View.VISIBLE)
|
|
|
btnStop.visibility = View.INVISIBLE
|
|
|
btnStart.visibility = View.VISIBLE
|
|
|
btnPause.visibility = View.INVISIBLE
|
|
@@ -2193,8 +2192,11 @@ class ModesDetailActivity : CommonBVMActivity<ActivityModeDetailBinding, ModesVi
|
|
|
CofarSDK.confirm()
|
|
|
}
|
|
|
private fun visibilityEgg(visibility :Int){
|
|
|
+ //2023.12.11 000A客户,鸡蛋程序还未完整,需隐藏
|
|
|
if ("COOK_EGGS" == viewModel.modeType) {
|
|
|
- binding.ivEggs.visibility = visibility
|
|
|
+ binding.ivEggs.visibility = View.GONE
|
|
|
+ //由于SDK默认时间只有20秒,需要自己另行设置
|
|
|
+ CofarSDK.devInfo().mode.maxTime = 20*60
|
|
|
}else{
|
|
|
binding.ivEggs.visibility = View.GONE
|
|
|
}
|