From 3479bb0faf80f3bcaf42cfbb6397ef2dbf8b503b Mon Sep 17 00:00:00 2001 From: MiMo Date: Fri, 17 Jul 2026 18:41:36 +0800 Subject: [PATCH] =?UTF-8?q?=20RemindThread=20=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=90=AF=E5=81=9C=20APPMSGMailRemindThread=EF=BC=8C=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E9=97=B4=E9=9A=94=E8=B0=83=E6=95=B4=E4=B8=BA10?= =?UTF-8?q?=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - RemindThread 触发提醒时同步启动 APPMSGMailRemindThread - RemindThread 线程退出时同步停止 APPMSGMailRemindThread - APPMSGMailRemindThread 邮件发送间隔 30秒 → 10秒 --- powerbell/build.properties | 4 ++-- .../studio/powerbell/threads/APPMSGMailRemindThread.java | 2 +- .../cc/winboll/studio/powerbell/threads/RemindThread.java | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/powerbell/build.properties b/powerbell/build.properties index 5eef4cb..83fd2e3 100644 --- a/powerbell/build.properties +++ b/powerbell/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Fri Jul 17 17:35:09 CST 2026 +#Fri Jul 17 18:35:29 CST 2026 stageCount=19 libraryProject= baseVersion=15.15 publishVersion=15.15.18 -buildCount=13 +buildCount=16 baseBetaVersion=15.15.19 diff --git a/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/APPMSGMailRemindThread.java b/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/APPMSGMailRemindThread.java index d5849a0..a18c684 100644 --- a/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/APPMSGMailRemindThread.java +++ b/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/APPMSGMailRemindThread.java @@ -17,7 +17,7 @@ public class APPMSGMailRemindThread extends Thread { public static final String TAG = "APPMSGMailRemindThread"; // 邮件发送间隔(毫秒) - private static final long MAIL_SEND_INTERVAL = 30000; + private static final long MAIL_SEND_INTERVAL = 10000; // 单例实例 private static APPMSGMailRemindThread sInstance; diff --git a/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/RemindThread.java b/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/RemindThread.java index 07a448a..3dcc615 100644 --- a/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/RemindThread.java +++ b/powerbell/src/main/java/cc/winboll/studio/powerbell/threads/RemindThread.java @@ -191,6 +191,8 @@ public class RemindThread extends Thread { // 启动电量通知 TTS 语音提醒线程 TTSRemindThread.start(this.mContext, App.sQuantityOfElectricity, isCharging); + // 启动电量通知邮件提醒线程 + APPMSGMailRemindThread.start(this.mContext, App.sQuantityOfElectricity, isCharging); // 安全休眠,保留中断标记 safeSleepInternal(sleepTime); @@ -283,7 +285,8 @@ public class RemindThread extends Thread { */ private void cleanThreadStateInternal() { LogUtils.d(TAG, String.format("cleanThreadStateInternal() 调用 | threadId=%d", getId())); - TTSRemindThread.stopTTS(); + TTSRemindThread.stopTTS(); + APPMSGMailRemindThread.stopMail(); isReminding = false; isExist = true; // 中断当前线程(如果存活)