ankidroid / ankidroid/Anki-Android

Widget: Notification & Sound each time I change AnkiDroid Activities

Open
#6,476 6 comments 0 reactions 0 assignees View on GitHub
Advanced Reminders Keep Open Question Widget
Dominant language
Kotlin
Stars
11.8k
Forks
2.9k
Avg merge
2d 3h
Merged PRs (30d)
167

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.