ankidroid / ankidroid/Anki-Android

Shortcut to the currently open deck should not close the stack

Open
#17,772 2 comments 0 reactions 0 assignees View on GitHub
Accepted Priority-Low
Dominant language
Kotlin
Stars
11.8k
Forks
2.9k
Avg merge
2d 3h
Merged PRs (30d)
171

Description

How to reproduce:
* Have a deck D with many cards to review today
* create a shortcut to deck D or a widget that shows the content of D
* Open the deck D through the shortcut
* on a card c1, tap "again" to ensure you have a card in learning. If this card next review is in m minutes, wait m minutes
* while a different card c2 is shown in the reviewer, reduce ankidroid
* (In my use case, I've a doubt about c2 content, and I would go search online whether c2 is accurate, whether there is anything to change. The main point being that I care very much about c2, but I'm not in ankidroid anymore)
* open the deck D through the shortcut

Expected:
* I'll still be on c2. I'm reusing the same icon, when AnkiDroid was last opened we were in the deck D. As a user, I don't see any reason why we should change what's displayed on the application. I would expect the app behaves the same way whether I press "AnkiDroid" or "D"

Actual:
* A card in learning is shown, probably c1. I need to review all cards in learning before I go to c2 again

I would even argue that, if I were editing c2, I'd love the editor to still be open. As long as the editor is on top of the reviewer for D, I think it's best to keep it open. Same with any other view added on top of the reviewer reviewing deck D, since it then suffices to tap back to go back to the reviewer.

I must start that I've no idea whether this bug is fixable in a way that is not absurdly complex. Because that would mean the IntentHandler would need to check whether the reviewer is opened, and which deck is currently selected and then re-open the already existing stack.

Before starting to work on this issue, please wait for another maintainer to confirm whether this feature is acceptable or not

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.