日志按钮优化
This commit is contained in:
Generated
+2
-2
@@ -4,10 +4,10 @@
|
||||
<selectionStates>
|
||||
<SelectionState runConfigName="app">
|
||||
<option name="selectionMode" value="DROPDOWN" />
|
||||
<DropdownSelection timestamp="2025-11-06T09:21:30.965681400Z">
|
||||
<DropdownSelection timestamp="2025-12-30T02:33:30.984909200Z">
|
||||
<Target type="DEFAULT_BOOT">
|
||||
<handle>
|
||||
<DeviceId pluginId="Default" identifier="serial=?;connection=3c39678a" />
|
||||
<DeviceId pluginId="Default" identifier="serial=192.168.1.105:5555;connection=c501a2a1" />
|
||||
</handle>
|
||||
</Target>
|
||||
</DropdownSelection>
|
||||
|
||||
@@ -133,9 +133,14 @@ class LoginByFaceActivity : BaseActivity<ActivityLoginFaceBinding>(),
|
||||
|
||||
binding.btnLogState.let {
|
||||
it.tag = false
|
||||
it.setImageResource(R.drawable.ic_log_show)
|
||||
it.setOnClickListener { v ->
|
||||
binding.rvLogInfo.visible()
|
||||
it.tag = it.tag.toString().toBoolean().not()
|
||||
val state = it.tag.toString().toBooleanStrictOrNull() ?: false
|
||||
it.tag = state
|
||||
it.setImageResource(
|
||||
if (state) R.drawable.ic_log_hide else R.drawable.ic_log_show
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user