-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
PermissionsUntil29Fragment
: PermissionsActivity cannot be cast to com.ichi2.anki.DeckPicker
#17372
Comments
PermissionsUntil29Fragment
: PermissionsActivity cannot be cast to com.ichi2.anki.DeckPicker
This is a duplicate of the old #5075 issue. |
No, this is a new one https://ankidroid.org/acra/app/1/bug/260958/report/6e1af9a6-646f-45ed-8480-70f738dea58e The problem is that now if permissions for storage are revoked we start PermissionsActivity, and it opens the DatabaseErrorDialog, and the onClick listeners there will try to (for instance) "restore from backup", which is a method that lives on DeckPicker (vs, say, AnkiActivity) So a user that has lost access to their collection tries to restore from backup and crashes - that's a pretty bad experience Perhaps this method could throw an Intent to DeckPicker and start it, vs assuming it already was DeckPicker and then crashing on cast? Anki-Android/AnkiDroid/src/main/java/com/ichi2/anki/dialogs/DatabaseErrorDialog.kt Lines 407 to 429 in 76aae32
|
https://ankidroid.org/acra/app/1/bug/254139/report/9a9b9d55-923c-4799-95f3-5330c19a26c0
The text was updated successfully, but these errors were encountered: