chore(Q): 首页近期动态心跳间隔 30s 调整为 5s

This commit is contained in:
2995840376 2026-10-28 11:21:09 +08:00
parent 3a91a50dec
commit 197f97ec1d

View File

@ -181,7 +181,7 @@ public class HomeFragment extends Fragment {
// ==================== 近期动态心跳 ====================
/**
* 心跳间隔:30 秒。
* 心跳间隔:5 秒。
*
* <p>用途:面板/物理开关的操作,只有在手机能收到设备 DP 回流时才会被感知
* (此时事件总线会立即通知,不必等心跳);但当操作发生在手机不在家/无蓝牙连接时,
@ -190,7 +190,7 @@ public class HomeFragment extends Fragment {
*
* <p>只刷新动态列表,不触碰设备列表,因此不会造成常用设备跳位。</p>
*/
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() {