Anki-Android
Anki-Android copied to clipboard
[Bug] Inconsistent Color for Selected Tags
Reproduction Steps
- Create a card
- Select some tags
- Try selecting and unselecting multiple times and Opening and closing the other cards hierarchy.
Expected Result
Should have the same selected tag button color
Actual Result
Sometimes, the gray color for the selected card
Debug info
Refer to the support page if you are unsure where to get the "debug info". AnkiDroid Version = 2.17alpha14-debug (f034ae348e0f993392e91875d4ad094341f570ea)
Backend Version = 0.1.32-anki23.10.1 (23.10.1 fac9e0ee1436ba5ac3366c72dd9394a6e692b1cf)
Android Version = 13 (SDK 33)
ProductFlavor = amazon
Manufacturer = realme
Model = RMX3371
Hardware = qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 13; RMX3371 Build/TP1A.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/120.0.6099.43 Mobile Safari/537.36
ACRA UUID = cddde5e0-617c-4fbe-8864-951ba7e89322
Crash Reports Enabled = false
Research
Enter an [x] character to confirm the points below:
- [x] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
- [x] I have checked the manual and the FAQ and could not find a solution to my issue
- [x] I have searched for similar existing issues here and on the user forum
- [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
Let me work on this for god's sake
Let me learn something 😭
Go for it
This is not only about the colors. I have observed that sometimes an unselected tag gets automatically selected when another tag is selected.
This incorrectly selected tag shows a gray checkbox, which contains a -
symbol. Normally, this symbol denotes a parent tag. But, in this case, it is appearing in tags that don't have any sub-tags.
This gray checkbox appeared after I selected the tag with the blue checkbox. Also, the incorrect tag can't be removed, it keeps toggling between -
and ✓
.
It may be unrelated but when I took a screenshot of this tags window, the app crashed.
Debug Info
AnkiDroid Version = 2.17alpha15 (e5b25f3fef737140ae396d1b212a8d638551500f)
Backend Version = 0.1.34-anki23.12.1 (23.12.1 1a1d4d5419c6b57ef3baf99c9d2d9cf85d36ae0a)
Android Version = 13 (SDK 33)
ProductFlavor = full
Manufacturer = motorola
Model = moto g62 5G
Hardware = qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 13; moto g62 5G Build/T1SSIS33.1-75-7-3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/120.0.6099.193 Mobile Safari/537.36
ACRA UUID = d808c2e4-92ce-40db-9491-1fdcb75b1f50
Crash Reports Enabled = true
@user1823 If possible, can you also share the log messages?
Can you tell me how to do it? Also, I am not a dev. So, I would be able to do it only if it doesn't involve going to the command-line, etc.
If you're not a dev, then you don't need to share it. Thank you for reporting the issue.
I have gone through all the related files, Adapter, and XML, but couldn't find the logic that leads to this inconsistency. Any ideas of what might be happening with the Checkbox state change cycle and color-related issue?
I might need some help in analysing what exactly is causing the issue
@Sagar0-0
Can you tell me how to reproduce this? I want to test it?
I am converting the tagDialog to alertDialog in #15398 this will probably fix this as the theming of alert dialog has been fixed recently.
Reproduction Steps:
- Edit a note with a selected tag in the Browser
- Tap the checkbox to remove the tag
- Tap outside the checkbox to add the tag
Hello could I get assigned to this?
Done, cheers!