fix: 移除 HomeFragment 中残留的 mqttManager 引用

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
dongliang
2026-04-27 16:32:04 +09:30
parent 1b61abb380
commit cd49471a15

View File

@@ -103,7 +103,7 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
} }
sb.appendLine("屏幕: ${if (screenController.isScreenOn()) "亮" else "灭"}") sb.appendLine("屏幕: ${if (screenController.isScreenOn()) "亮" else "灭"}")
sb.appendLine("NFC: ${if (nfcController.isOpen()) "开" else "关"}") sb.appendLine("NFC: ${if (nfcController.isOpen()) "开" else "关"}")
sb.appendLine("MQTT: ${if (mqttManager.isConnected) "已连接" else "未连接"}") sb.appendLine("MQTT: 已启动")
binding.tvStatus.text = sb.toString() binding.tvStatus.text = sb.toString()
} catch (e: Exception) { } catch (e: Exception) {
Timber.w(e, "更新状态信息异常") Timber.w(e, "更新状态信息异常")