Changed when errors records more than 5 then show the statistics icon

This commit is contained in:
2022-06-21 00:55:00 +08:00
parent 9ddbea5ae7
commit 95751dde2d

View File

@@ -144,7 +144,7 @@ class AppErrorsRecordActivity : BaseActivity<ActivityAppErrorsRecordBinding>() {
listData.clear()
it.takeIf { e -> e.isNotEmpty() }?.forEach { e -> listData.add(e) }
onChanged?.invoke()
binding.appErrorSisIcon.isVisible = listData.isNotEmpty()
binding.appErrorSisIcon.isVisible = listData.size >= 5
binding.clearAllIcon.isVisible = listData.isNotEmpty()
binding.exportAllIcon.isVisible = listData.isNotEmpty()
binding.listView.isVisible = listData.isNotEmpty()