MiMo
|
1de0a36d79
|
<powerbell> 优化 ChargeMailNotify 提醒方式切换逻辑
1. RemindThread 提醒线程
- ChargeMailNotify 启用:使用 APPMSGMailRemindThread 邮件提醒
- ChargeMailNotify 未启用:使用 TTSRemindThread 语音提醒
- 停止线程时同步切换逻辑
2. ControlCenterServiceHandler 消息处理
- ChargeMailNotify 启用:使用 Toast 代替通知栏提醒
- ChargeMailNotify 未启用:正常发送通知栏提醒
3. 悬浮窗提示信息更新
- 新增TTS语音播放功能已禁用提示
- 新增电量提醒通知栏功能已禁用提示
|
2026-07-18 10:05:08 +08:00 |
|
MiMo
|
97f42054d2
|
<powerbell> 优化 ChargeMailNotify 开关联动逻辑
1. SettingsActivity 充电邮件通知开关
- 开启时:先 stopService 再 startService 重启 ControlCenterService
- 关闭时:停止 RemindThread 并关闭悬浮窗
2. ControlCenterService 服务销毁
- onDestroy 中关闭 ChargeMailNotifyFloatWindow 悬浮窗
- 资源释放顺序:前台服务 → 线程 → 悬浮窗 → 广播接收器 → Handler → 通知
|
2026-07-18 05:21:48 +08:00 |
|
MiMo
|
e1428632e6
|
<powerbell> 新增 ChargeMailNotify 功能开关及悬浮窗提示
1. 新增 ChargeMailNotifyHelper 功能开关管理类
- 使用 SharedPreferences 持久化存储开关状态
- 提供静态方法 isEnabled() / setEnabled()
2. 新增 ChargeMailNotifyFloatWindow 悬浮窗工具类
- 单例模式(DCL双重检查锁)
- show() 显示悬浮窗(带邮件图标)
- dismissWindow() 静态方法供外部关闭悬浮窗
- 悬浮窗持续显示,仅在开关关闭时关闭
3. 修改 SettingsActivity 设置界面
- 新增充电邮件通知 Switch 开关(位于 SMTPConfigView 上方)
- Switch 关闭时:禁用 SMTPConfigView、停止 RemindThread、关闭悬浮窗
- Switch 打开时:启用 SMTPConfigView
4. 修改 ControlCenterService 服务
- 服务启动时检查 ChargeMailNotify 功能状态
- 启用时显示悬浮窗提示充电邮件通知服务已启用
5. 修改 RemindThread 提醒线程
- 启动/停止 APPMSGMailRemindThread 前检查开关状态
- 仅在 ChargeMailNotify 启用时触发邮件提醒
|
2026-07-17 22:22:46 +08:00 |
|
MiMo
|
3479bb0faf
|
<powerbell> RemindThread 同步启停 APPMSGMailRemindThread,邮件间隔调整为10秒
- RemindThread 触发提醒时同步启动 APPMSGMailRemindThread
- RemindThread 线程退出时同步停止 APPMSGMailRemindThread
- APPMSGMailRemindThread 邮件发送间隔 30秒 → 10秒
|
2026-07-17 18:41:36 +08:00 |
|
MiMo
|
9f93489a71
|
<powerbell> 新增 APPMSGMailRemindThread 邮件提醒线程及 SMTPConfigView 配置界面
- 新增 APPMSGMailRemindThread 单实例线程,定时30秒发送电量状态邮件
- SettingsActivity 添加 SMTPConfigView 控件,支持 SMTP 配置与测试发送
- build.gradle 添加 android-mail/android-activation 1.6.7 依赖
- build.gradle 添加 packagingOptions 排除重复 META-INF 文件
- build.properties: 构建计数器自动更新
|
2026-07-17 17:57:05 +08:00 |
|
ZhanGSKen
|
4869de60a7
|
整合旧版PowerBell模块源码
|
2026-07-12 00:53:34 +08:00 |
|
ZhanGSKen
|
b274503187
|
20260701_154438_390
|
2026-07-01 15:45:11 +08:00 |
|
ZhanGSKen
|
47ace290e5
|
拷贝https://gitea.winboll.cc/Studio/WinBoLL_Bck20260513_154646_588.git项目提交点为9d90b35fc20c7190472db1fdaa9e1417067856c0的源码
|
2026-05-13 15:54:02 +08:00 |
|