ankidroid / ankidroid/Anki-Android

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

オープン
#16,786 コメント 14 件 リアクション 0 件 担当者 1 名 @criticalAY が担当を希望しています GitHub で見る
Bug Keep Open Priority-Low
主要言語
Kotlin
スター
11.8k
フォーク
2.9k
平均マージ
2日 3時間
マージ済み PR(30日)
171

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。