Anki-Android
Anki-Android copied to clipboard
[BUG] Dropping an unsupported file into Deck Picker fails silently
Checked for duplicates?
- [x] This issue is not a duplicate
Does it also happen in the desktop version?
- [x] This bug does not occur in the latest version of Anki Desktop
What are the steps to reproduce this bug?
- Open AnkiDroid in split-screen mode alongside a file manager app.
- Drag and drop an unsupported file type (e.g., a
.txtfile or an image) from the file manager onto the Deck Picker window. - Observe that nothing happens (the import fails silently).
Expected behaviour
The app should display an error message (like a toast or snackbar) notifying the user that the file type is unsupported.
Instead, the file is rejected internally (in DeckPicker.kt around line 941 inside OnReceiveContentListener) but the error is completely discarded with a // TODO: This does nothing comment.
Debug info
AnkiDroid Version = 2.24.0 (ebcf8e0e34921628b9b8a496c66ffd4adbb3705f)
Backend Version = 0.1.64-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
Android Version = 16 (SDK 36)
ProductFlavor = play
Device Info = samsung | samsung | a17x | a17xins | SM-A176B | s5e8535
WebView Info = [com.google.android.webview | 792219903]: Mozilla/5.0 (Linux; Android 16; SM-A176B Build/BP4A.251205.006; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/151.0.7922.199 Mobile Safari/537.36
ACRA UUID = 0c065efa-6462-4251-8d75-d760b38b826b
FSRS = 5.1.0 (Enabled: false)
Crash Reports Enabled = true
(Optional) Anything else you want to share?
No response
Research
- [x] I have checked the manual and the FAQ and could not find a solution to my issue
- [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
N/A - Known bug in codebase0
Please add debug info, it lets someone know what to check out to reproduce the issue