test of vip has finished and through

This commit is contained in:
zhongchao
2022-09-20 15:56:21 +08:00
parent 9ab6f98ab9
commit 82721757e5
3 changed files with 16 additions and 26 deletions

View File

@@ -62,7 +62,6 @@ import com.mogo.eagle.core.function.hmi.R
import com.mogo.eagle.core.function.hmi.ui.logcatch.ILogViewListener
import com.mogo.eagle.core.function.hmi.ui.logcatch.LogInfoView
import com.mogo.eagle.core.function.hmi.ui.upgrade.UpgradeListAdapter
import com.mogo.eagle.core.function.v2x.vip.VipCarManager
import com.mogo.eagle.core.network.*
import com.mogo.eagle.core.utilcode.kotlin.onClick
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
@@ -440,27 +439,15 @@ class DebugSettingView @JvmOverloads constructor(
/**
* 日志中心
*/
// tbLogcatCenter.setOnCheckedChangeListener { buttonView, isChecked ->
// if (isChecked) {
// buttonView.setCompoundDrawables(null, null, iconDown, null)
// //展示日志中心
// logcatCenterLayout.visibility = View.VISIBLE
// } else {
// buttonView.setCompoundDrawables(null, null, iconRight, null)
// //隐藏日志中心
// logcatCenterLayout.visibility = View.GONE
// }
// }
//todo test
tbLogcatCenter.setOnCheckedChangeListener { buttonView, isChecked ->
if (isChecked) {
buttonView.setCompoundDrawables(null, null, iconDown, null)
//展示日志中心
logcatCenterLayout.visibility = View.VISIBLE
VipCarManager.INSTANCE.turnLight(30)
} else {
buttonView.setCompoundDrawables(null, null, iconRight, null)
//隐藏日志中心
logcatCenterLayout.visibility = View.GONE
VipCarManager.INSTANCE.turnLight(30)
}
}