feat: improve compact layouts, chart readability, and medication reminders - #29
Closed
YingQiu0871 wants to merge 0 commit into
Closed
feat: improve compact layouts, chart readability, and medication reminders#29YingQiu0871 wants to merge 0 commit into
YingQiu0871 wants to merge 0 commit into
Conversation
Author
|
已追加提交 |
Owner
此为遵循M3E的预期行为
此也为遵循M3E的预期行为,但确实实际使用中发现宽度变化容易导致折行,从而导致高度也不稳定。 |
YingQiu0871
marked this pull request as ready for review
August 13, 2026 09:10
YingQiu0871
marked this pull request as draft
August 13, 2026 09:10
Author
|
已按维护者意见移除原第 3 点(给药途径按钮弹跳修复),恢复 M3E 预期的宽度动画行为。因原 head 仓库的 fork 关系已失效,原 PR 无法重开,全部改动(除第 3 点外)已重新提交为新 PR #31,请继续 review。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
本 PR 汇总了一组针对窄屏设备、折叠屏合上模式、图表可读性及用药计划提醒的改进,并保持现有药代模型、用药数据结构与数据库结构不变。
特别适配了折叠屏设备合上后的窄屏显示模式,同时兼顾普通小屏手机和系统大字体场景;新增提醒使用 Android 标准通知组件,并在支持的系统上请求 Android 16 焦点通知(Live Updates / promoted notifications)展示资格。
更新内容
1. 首页窄屏与折叠屏合上模式适配
2. 浓度图表响应式布局
100–200 pg/mL的非针剂女性向 GAHT 目标浓度阴影,并确保纵轴始终能完整展示该范围。3. 添加用药方案时的弹跳修复
4. 设置页选项形状稳定
5. 用药计划提醒与通知快捷操作
根因
SegmentedListItem默认会在交互状态下改变宽度或形状,导致弹跳和轮廓不一致。StateFlow读取方案。Android 兼容依据
NotificationCompat.Builder.addAction()与BroadcastReceiver模式。POST_PROMOTED_NOTIFICATIONS、setRequestPromotedOngoing(true)和系统授权状态检查;未获得 promoted 资格时由系统自然降级。RemoteViews,保留标准通知样式、公开锁屏可见性和高重要性通知渠道。验证
clean testDebugUnitTest lintDebug assembleDebug:完整干净构建通过。testDebugUnitTest:81 项单元测试全部通过。lintDebug:0 个错误。assembleDebug:Debug APK 构建成功。范围说明
dose_events数据结构。