ankidroid / ankidroid/Anki-Android
Shortcuts/share to ankidroid should not crash the app when the file permissions are missing
- Langage dominant
- Kotlin
- Étoiles
- 11.8k
- Forks
- 2.9k
- Merge moyen
- 2 j 3 h
- PR mergées (30 j)
- 171
Description
How to reproduce:
* install ankidroid from a source that is not the playstore. If you build ankidroid yourself, you can use the full variant.
* open ankidroid, give permission to access file
* open the settings, go to apps > Special app access> all files access> ankidroid> toggle off "allow access to manage all files" (Or, you can wait a few months, android remove permissions to apps that are not used)
* Then, either:
* long tap ankidroid, and open the shortcut for study, add or card browser
* select some text, and share it with ankidroid, with note editor or instant note editor ( ping @criticalAY )
* select an image, and share it to ankidroid > Add Image
Actual result:
* You'll see a snackbar "Missinq required storage permission. Please grant storage permission then r..."
Expected result:
* same as when you open ankidroid directly, open a downloaded deck, or when you share an image to AnkiDroid > Image Occlusion, that is, opens a page that state
> Ankidroid needs some permission to work.
This is a very low priority bug, because it can only occurs to people who:
* don't use the play store version,
* have spent months without using ankidroid, have manually removed a permission, or try to share to ankidroid before opening ankidroid a first time normally
* have created shortcuts or decides to share images or text to ankidroid.
This probably happened to some of our users, but I expect this to be quite rare
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.