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

Remaining cards counter is not working

Open billynguyenhai-ai opened this issue 6 months ago • 10 comments

Checked for duplicates?

  • [x] This issue is not a duplicate

Does it also happen in the desktop version?

  • [ ] This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

I just casually entered the app and studied. After a while, I noticed the remaining cards counter said the same, which meant I haven't studied any cards at all.

Expected behaviour

The counter keeps showing one number instead of gradually decreasing as i study.

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 = Google | google | shiba | shiba | Pixel 8 | shiba  
WebView Info = [com.google.android.webview | 777812003]: Mozilla/5.0 (Linux; Android 16; Pixel 8 Build/CP1A.260405.005; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/148.0.7778.120 Mobile Safari/537.36  
ACRA UUID = 8520528b-5efc-452f-b2b9-746191d2f95b  
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
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

billynguyenhai-ai avatar May 21 '26 05:05 billynguyenhai-ai

@billynguyenhai-ai Could you please share a video of the bug?

DoomsCoder avatar May 21 '26 05:05 DoomsCoder

@DoomsCoder Here you go. I did have a accessibility shortcut to show you but it didn't show, just look at the counter after I studied 2 cards, it stayed the same.

https://github.com/user-attachments/assets/698b3f9a-2975-426b-a83b-4dfa88b7a211

billynguyenhai-ai avatar May 21 '26 06:05 billynguyenhai-ai

Probably the same issue as https://github.com/ankidroid/Anki-Android/issues/17605.

ZornHadNoChoice avatar May 21 '26 08:05 ZornHadNoChoice

@DoomsCoder Here you go. I did have a accessibility shortcut to show you but it didn't show, just look at the counter after I studied 2 cards, it stayed the same.

screen-20260521-133159-1779345094980.mp4

Thanks for the video! I can see the green counter actually decreases as you study card by card, but red counter doesn't increase when you press on 'Hard'.

In Anki scheduler, pressing 'Hard' on green review card keeps it green and reschedules for a future date (eg. 1 month later ) and if you press 'Hard' on new card then it increases red counter.

Were you expecting the 'Hard' button to increase the red count? Please let me know If i misunderstood your message!

DoomsCoder avatar May 21 '26 11:05 DoomsCoder

@DoomsCoder the bug is actually the 10761 counter on the top left corner

billynguyenhai-ai avatar May 21 '26 13:05 billynguyenhai-ai

@DoomsCoder the bug is actually the 10761 counter on the top left corner

@billynguyenhai-ai Sorry about that, I completely missed it! I was focused on coloured numbers below and didnt spot the total count at the top.

I see now it went from 10761 to 10762 instead decreasing. I'll check the code to see why it's adding instead of substracting

DoomsCoder avatar May 21 '26 13:05 DoomsCoder

Before you do that, can @billynguyenhai-ai check this comment https://github.com/ankidroid/Anki-Android/issues/17605#issuecomment-4171165363 to see if it's the same issue? Just add up the numbers as described to see if it matches the count at the top of the main screen.

ZornHadNoChoice avatar May 21 '26 13:05 ZornHadNoChoice

@ZornHadNoChoice sure, thank you

edit: ive read the comment, but i dont want to merge the decks. anw, ty for your assistance:D

billynguyenhai-ai avatar May 21 '26 16:05 billynguyenhai-ai

You don't have to merge the decks, but never mind. I looked at your video and added up the numbers visible with capping. The result was 10,765 which is bigger than the count at the top of the screen.

This means that my conclusion in that issue may not be fully accurate. Nevertheless, the fact that the count increased by one after one of the review cards became a learning card (one more red) suggests that the two issues are the same.

ZornHadNoChoice avatar May 21 '26 16:05 ZornHadNoChoice

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Aug 21 '26 12:08 github-actions[bot]