Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

[BUG] Dropping an unsupported file into Deck Picker fails silently

Open Ratnesh5 opened this issue 2 months ago • 1 comments

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?

  1. Open AnkiDroid in split-screen mode alongside a file manager app.
  2. Drag and drop an unsupported file type (e.g., a .txt file or an image) from the file manager onto the Deck Picker window.
  3. 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)

Ratnesh5 avatar Sep 14 '26 16:09 Ratnesh5

N/A - Known bug in codebase0

Please add debug info, it lets someone know what to check out to reproduce the issue

david-allison avatar Sep 14 '26 17:09 david-allison