Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure there is at most one reviewer #17662

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Arthur-Milchior
Copy link
Member

Currently, the code ensured there was at most one IntentHandler. We honestly don't care about it. Instead, the new code ensure that there is a single Reviewer.

This bug was probably introduced in #17422 with commit f26aa95.

I would love to test to avoid another regression. However, it's really not clear to me how to deal with shortcuts, widget or remainders as they are outside of the main app.

It should be noted that this is still far from ideal. Because, once you're done reviewing, you can go back to whatever view used to be opened. For example:

  • in the deck picker, open the deck options of deck A
  • reduce ankidroid,
  • use a shortcut or widget to open deck B
  • review deck B entirely

You go back to the deck options of deck A, and you don't even have any context about what is the deck whose options you are currently seeing.

I think ideally we should close everything, and just open the deck picker, and then the reviewer on top of it.
However, as this simple fix works for what I expect to be the most common use case (regularly tapping on the shortcut/widget), I think it's still work merging it.

Bug #16956.

Currently, the code ensured there was at most one IntentHandler. We
honestly don't care about it. Instead, the new code ensure that there
is a single Reviewer.

This bug was probably introduced in ankidroid#17422 with commit
f26aa95.

I would love to test to avoid another regression. However, it's really
not clear to me how to deal with shortcuts, widget or remainders as
they are outside of the main app.

It should be noted that this is still far from ideal. Because, once
you're done reviewing, you can go back to whatever view used to be
opened. For example:
* in the deck picker, open the deck options of deck A
* reduce ankidroid,
* use a shortcut or widget to open deck B
* review deck B entirely

You go back to the deck options of deck A, and you don't even have any
context about what is the deck whose options you are currently seeing.

I think ideally we should close everything, and just open the deck
picker, and then the reviewer on top of it.
However, as this simple fix works for what I expect to be the most
common use case (regularly tapping on the shortcut/widget), I think
it's still work merging it.

Bug ankidroid#16956.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant