ankidroid / ankidroid/Anki-Android

Widget: Notification & Sound each time I change AnkiDroid Activities

未关闭
#6,476 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Advanced Reminders Keep Open Question Widget
主要语言
Kotlin
星标
11.8k
派生
2.9k
平均合并
2 天 3 小时
30 天内合并 PR
167

描述

2.12alpha6 Android 9.

I don't use notifications/widget generally, so this may be user error.

I have a test collection with 55 unseen cards

Notification settings: Notify when more than 10 cards due

Each time I lock my phone with AnkiDroid open, or load a new activity in AnkiDroid, I get a notification sound and notification with "55 cards due". Even if the notification is currently appearing, there's no grace period.

This is distracting and isn't a great user experience.

Caused by calling `widget.update()` `onStop`: https://github.com/ankidroid/Anki-Android/blob/b1135ff3cbd8d536a0175e7b9b156fdb88585e1b/AnkiDroid/src/main/java/com/ichi2/anki/CardBrowser.java#L683

This calls through to:

https://github.com/ankidroid/Anki-Android/blob/8ada06b2e6521aa4e9eff2a0539dc192ef89a894/AnkiDroid/src/main/java/com/ichi2/widget/WidgetStatus.java#L116

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。