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

Make the "Card marked as leech" a snackbar instead of a toast

Open BrayanDSO opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I was doing my cards and got one wrong, so I had to tap again. Unfortunately it became a leech 😭. then I noticed that the "Card marked as leech" message used a toast. As snackbars are preferred, we should replace it

Describe the solution you'd like Use a snack bar instead of a toast for the "Card marked as leech" message

Describe alternatives you've considered Keep seeing toasts every time I fail miserably to remember a card multiple times

BrayanDSO avatar Sep 22 '22 16:09 BrayanDSO

Card browser -> select few cards -> reset progress. Also shows a toast.

criticalAY avatar Sep 22 '22 18:09 criticalAY

Could you please help me a bit to reproduce this issue? I would like to work on it and fix it.

criticalAY avatar Sep 22 '22 18:09 criticalAY

@criticalAY This could be a good starting point. https://github.com/ankidroid/Anki-Android/blob/main/AnkiDroid/src/main/java/com/ichi2/libanki/sched/AbstractSched.kt

pratyaksh1610 avatar Sep 22 '22 19:09 pratyaksh1610

@criticalAY This could be a good starting point. https://github.com/ankidroid/Anki-Android/blob/main/AnkiDroid/src/main/java/com/ichi2/libanki/sched/AbstractSched.kt

Thankyou!

criticalAY avatar Sep 22 '22 19:09 criticalAY

@BrayanDSO I have fixed this. How to test it? Practical conditions so that I can test and make a PR. Thankyou!

criticalAY avatar Sep 22 '22 19:09 criticalAY