ankidroid / ankidroid/apisample

App crashes on export when AnkiDroid doesn't have Storage permissions

Open
#10 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
25
Forks
13
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce:

1. Install AnkiDroid but do not run OR remove Storage permissions from existing AnkiDroid app via App Info UI
2. Launch API Sample app
3. Select entry, hit share button, select AnkiDroid Instant-Add

**Expected**: Not sure? Maybe user gets prompted with dialog explaining why Anki cannot be exported to?
**Actual**: App crashes due to unhandled `IllegalStateException` in `AnkiDroidHelper::getDeckId` with message "AnkiDroid database inaccessible. Open AnkiDroid to see what's wrong."

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.