ankidroid / ankidroid/Anki-Android

Shortcuts/share to ankidroid should not crash the app when the file permissions are missing

Abierto
#16,786 14 comentarios 0 reacciones 1 asignado Reclamado por @criticalAY Ver en GitHub
Bug Keep Open Priority-Low
Lenguaje dominante
Kotlin
Estrellas
11.8k
Forks
2.9k
Merge medio
2 d 3 h
PR fusionados (30 d)
171

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.