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

[Bug] Inconsistent Color for Selected Tags

Open Sagar0-0 opened this issue 1 year ago • 13 comments

Reproduction Steps
  1. Create a card
  2. Select some tags
  3. 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 photo_6123000524044350846_y

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)

Sagar0-0 avatar Jan 10 '24 17:01 Sagar0-0

Let me work on this for god's sake

Sagar0-0 avatar Jan 10 '24 18:01 Sagar0-0

Let me learn something 😭

Sagar0-0 avatar Jan 10 '24 18:01 Sagar0-0

Go for it

BrayanDSO avatar Jan 10 '24 21:01 BrayanDSO

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 avatar Jan 11 '24 12:01 user1823

@user1823 If possible, can you also share the log messages?

Sagar0-0 avatar Jan 11 '24 17:01 Sagar0-0

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.

user1823 avatar Jan 11 '24 17:01 user1823

If you're not a dev, then you don't need to share it. Thank you for reporting the issue.

Sagar0-0 avatar Jan 11 '24 17:01 Sagar0-0

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?

Sagar0-0 avatar Jan 16 '24 07:01 Sagar0-0

I might need some help in analysing what exactly is causing the issue

Sagar0-0 avatar Jan 27 '24 09:01 Sagar0-0

@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.

neeldoshii avatar Feb 04 '24 15:02 neeldoshii

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

david-allison avatar May 04 '24 15:05 david-allison

Hello could I get assigned to this?

leobugeja avatar May 06 '24 21:05 leobugeja

Done, cheers!

david-allison avatar May 06 '24 21:05 david-allison