From 197f97ec1d6167d1885febfbaf42decf3c55d9cb Mon Sep 17 00:00:00 2001 From: 2995840376 <2995840376@xiaomi.com> Date: Wed, 28 Oct 2026 11:21:09 +0800 Subject: [PATCH] =?UTF-8?q?chore(Q):=20=E9=A6=96=E9=A1=B5=E8=BF=91?= =?UTF-8?q?=E6=9C=9F=E5=8A=A8=E6=80=81=E5=BF=83=E8=B7=B3=E9=97=B4=E9=9A=94?= =?UTF-8?q?=2030s=20=E8=B0=83=E6=95=B4=E4=B8=BA=205s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Android/app/src/main/java/com/xhai/iot/ui/HomeFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Android/app/src/main/java/com/xhai/iot/ui/HomeFragment.java b/Android/app/src/main/java/com/xhai/iot/ui/HomeFragment.java index 9c7cc58..8831c9a 100644 --- a/Android/app/src/main/java/com/xhai/iot/ui/HomeFragment.java +++ b/Android/app/src/main/java/com/xhai/iot/ui/HomeFragment.java @@ -181,7 +181,7 @@ public class HomeFragment extends Fragment { // ==================== 近期动态心跳 ==================== /** - * 心跳间隔:30 秒。 + * 心跳间隔:5 秒。 * *

用途:面板/物理开关的操作,只有在手机能收到设备 DP 回流时才会被感知 * (此时事件总线会立即通知,不必等心跳);但当操作发生在手机不在家/无蓝牙连接时, @@ -190,7 +190,7 @@ public class HomeFragment extends Fragment { * *

只刷新动态列表,不触碰设备列表,因此不会造成常用设备跳位。

*/ - private static final long ACTIVITY_HEARTBEAT_MS = 30_000L; + private static final long ACTIVITY_HEARTBEAT_MS = 5_000L; private final android.os.Handler heartbeatHandler = new android.os.Handler(android.os.Looper.getMainLooper()); private final Runnable heartbeatTask = new Runnable() {