|
@@ -205,7 +205,7 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
//2023.12.11 000A客户需要隐藏电磁阀 2024.10.08.电磁阀改成弹窗显示,估在这里隐藏
|
|
|
if (baseSn.startsWith("063")) {
|
|
|
// binding.tvCount.setVisible()
|
|
|
-// binding.ivPotCover.setVisible()
|
|
|
+ binding.ivPotCover.setVisible()
|
|
|
} else {
|
|
|
binding.tvCount.setGone()
|
|
|
binding.ivPotCover.setGone()
|
|
@@ -408,9 +408,9 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
binding.ivCookBg.setGone()
|
|
|
}
|
|
|
} else {
|
|
|
- //2023.12.11 000A客户需要隐藏电磁阀 2024.10.08.电磁阀改成弹窗显示,估在这里隐藏
|
|
|
+ //2023.12.11 000A客户需要隐藏电磁阀 2024.10.08.电磁阀改成弹窗显示,估在这里隐藏数字
|
|
|
if (baseSn.startsWith("063")) {
|
|
|
-// binding.ivPotCover.setVisible()
|
|
|
+ binding.ivPotCover.setVisible()
|
|
|
} else {
|
|
|
binding.ivPotCover.setGone()
|
|
|
}
|
|
@@ -1034,44 +1034,44 @@ class CookStepActivity : CookStepBaseActivity() {
|
|
|
LogUtils.d("========${devInfo.motorGearBuffer}")
|
|
|
//之前是000 需要做电磁阀,现在单独判断063 2024.10.08.电磁阀改成弹窗显示,估在这里隐藏
|
|
|
//sn.startsWith("000")
|
|
|
-// if (baseSn.startsWith("063")) {
|
|
|
-// if (!CofarSDK.devInfo().isWeightStatus && devInfo.mode.mode != "TURBO") {
|
|
|
-// //电磁阀在非称重/切碎下显示开锁和上锁
|
|
|
-// if (devInfo.potCloverEleStatus.toInt() == 0 && potCloverEleStatus != 0) {
|
|
|
-// potCloverEleStatus = 0
|
|
|
-// potCloverInterval?.cancel()
|
|
|
-// if (currentBgId == com.develop.common.R.drawable.pot_clover_ele_unlock) {
|
|
|
-// binding.tvCount.setGone()
|
|
|
-// } else {
|
|
|
-// binding.tvCount.setVisible()
|
|
|
-// potCloverInterval = Interval(0, 1, TimeUnit.SECONDS, 5).life(this)
|
|
|
-// .subscribe {
|
|
|
+ if (baseSn.startsWith("063")) {
|
|
|
+ if (!CofarSDK.devInfo().isWeightStatus && devInfo.mode.mode != "TURBO") {
|
|
|
+ //电磁阀在非称重/切碎下显示开锁和上锁
|
|
|
+ if (devInfo.potCloverEleStatus.toInt() == 0 && potCloverEleStatus != 0) {
|
|
|
+ potCloverEleStatus = 0
|
|
|
+ potCloverInterval?.cancel()
|
|
|
+ if (currentBgId == com.develop.common.R.drawable.pot_clover_ele_unlock) {
|
|
|
+ binding.tvCount.setGone()
|
|
|
+ } else {
|
|
|
+ binding.tvCount.setGone()
|
|
|
+ potCloverInterval = Interval(0, 1, TimeUnit.SECONDS, 5).life(this)
|
|
|
+ .subscribe {
|
|
|
// binding.tvCount.updateText(it.toString())
|
|
|
-// }.finish {
|
|
|
-// binding.tvCount.setGone()
|
|
|
-// currentBgId =
|
|
|
-// com.develop.common.R.drawable.pot_clover_ele_unlock
|
|
|
-// binding.ivPotCover.setBackgroundResource(com.develop.common.R.drawable.pot_clover_ele_unlock)
|
|
|
-// }
|
|
|
-// .start()
|
|
|
-// }
|
|
|
-// } else if (devInfo.potCloverEleStatus.toInt() == 1 && potCloverEleStatus != 1) {
|
|
|
-// potCloverEleStatus = 1
|
|
|
-// potCloverInterval?.cancel()
|
|
|
-// if (currentBgId == com.develop.common.R.drawable.pot_clover_ele_lock) {
|
|
|
-// binding.tvCount.setGone()
|
|
|
-// } else {
|
|
|
-// binding.tvCount.setGone()
|
|
|
-// currentBgId = com.develop.common.R.drawable.pot_clover_ele_lock
|
|
|
-// binding.ivPotCover.setBackgroundResource(com.develop.common.R.drawable.pot_clover_ele_lock)
|
|
|
-// }
|
|
|
-//
|
|
|
-// } else if (devInfo.potCloverEleStatus.toInt() == 2 && potCloverEleStatus != 2) {
|
|
|
-// potCloverEleStatus = 2
|
|
|
-// binding.tvCount.setGone()
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
+ }.finish {
|
|
|
+ binding.tvCount.setGone()
|
|
|
+ currentBgId =
|
|
|
+ com.develop.common.R.drawable.pot_clover_ele_unlock
|
|
|
+ binding.ivPotCover.setBackgroundResource(com.develop.common.R.drawable.pot_clover_ele_unlock)
|
|
|
+ }
|
|
|
+ .start()
|
|
|
+ }
|
|
|
+ } else if (devInfo.potCloverEleStatus.toInt() == 1 && potCloverEleStatus != 1) {
|
|
|
+ potCloverEleStatus = 1
|
|
|
+ potCloverInterval?.cancel()
|
|
|
+ if (currentBgId == com.develop.common.R.drawable.pot_clover_ele_lock) {
|
|
|
+ binding.tvCount.setGone()
|
|
|
+ } else {
|
|
|
+ binding.tvCount.setGone()
|
|
|
+ currentBgId = com.develop.common.R.drawable.pot_clover_ele_lock
|
|
|
+ binding.ivPotCover.setBackgroundResource(com.develop.common.R.drawable.pot_clover_ele_lock)
|
|
|
+ }
|
|
|
+
|
|
|
+ } else if (devInfo.potCloverEleStatus.toInt() == 2 && potCloverEleStatus != 2) {
|
|
|
+ potCloverEleStatus = 2
|
|
|
+ binding.tvCount.setGone()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// //由于正常启动时间一到结束,没有调用base
|
|
|
// if (baseSn.startsWith("063")&&devInfo.potCloverEleStatus.toInt() == 1&&!isShowSolenoidDilaog) {
|