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

refactor: de-duplicate .csv/.tsv values both in IntentHandler and in `ImportFileSelectionFragment`

Open mikehardy opened this issue 1 year ago • 2 comments

those values are both here and in ImportFileSelectionFragment, which makes easier to forget to add a value to some of them (this one doesn't have text/plain, but the other does).

Extracting the list to somewhere and reusing it in both places would be better IMO

Originally posted by @BrayanDSO in https://github.com/ankidroid/Anki-Android/pull/17867#discussion_r1929391773

mikehardy avatar Jan 26 '25 13:01 mikehardy

Thanks! Tagging as a good first issue. I'll take it on if it's not done this week (as agreed in the PR)

david-allison avatar Jan 26 '25 14:01 david-allison

Looking into it.

argon2r avatar Jan 26 '25 17:01 argon2r