|
@@ -721,7 +721,9 @@ class ModesDetailActivity : BaseActivity<ActivityModeDetailBinding>() {
|
|
|
this.window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
|
|
//其他模式
|
|
|
changeCommonStep()
|
|
|
-
|
|
|
+ this@ModesDetailActivity.isMotorDirectionGearChange =
|
|
|
+ baseMode.isMotorDirectionChange
|
|
|
+ viewModel.changeStep(CookSettingType.TEMP_SETTING)
|
|
|
if (CofarSDK.devInfo().status != DevStatus.PAUSE.toInt() && CofarSDK.devInfo().status != DevStatus.RUNNING.toInt()) {
|
|
|
|
|
|
var targetTemp = baseMode.defaultTemp.toShort()
|
|
@@ -1166,19 +1168,13 @@ class ModesDetailActivity : BaseActivity<ActivityModeDetailBinding>() {
|
|
|
|
|
|
|
|
|
override fun onKeyLongPress(keyCode: Int, event: KeyEvent?): Boolean {
|
|
|
-
|
|
|
- if (modeType == ModesType.WIGHT.name) {
|
|
|
- backClick()
|
|
|
- } else {
|
|
|
- if (mRunningState == DevStatus.RUNNING.toInt() || currDevInfo.status == DevStatus.PAUSE.toInt()) {
|
|
|
- stopClick()
|
|
|
- } else if (mRunningState == DevStatus.STOP.toInt()) {
|
|
|
- startClick()
|
|
|
- }
|
|
|
+ if (CofarSDK.devInfo().isWeightStatus) {
|
|
|
+ weightClearClick()
|
|
|
+ } else if (mRunningState == DevStatus.RUNNING.toInt() || currDevInfo.status == DevStatus.PAUSE.toInt()) {
|
|
|
+ stopClick()
|
|
|
+ } else if (mRunningState == DevStatus.STOP.toInt()) {
|
|
|
+ startClick()
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
return super.onKeyLongPress(keyCode, event)
|
|
|
}
|
|
|
|