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

[BUG]: Previewer and reviewer mismatch

Open soliviantar opened this issue 2 years ago • 4 comments

Checked for duplicates?

  • [X] This issue is not a duplicate

Does it also happen in the desktop version?

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

What are the steps to reproduce this bug?

  1. Import this deck.
  2. AnkiDroid is in Dark night mode (also happens in Black mode)
  3. Open card 2.
  4. The reviewer shows a very light button, a dark link and a little space below the button.
  5. Open the edit note menu.
  6. Open the preview window.
  7. The card shows differently (lighter hint link, darker button background, more space below button)

Expected behaviour

Both viewers should show the same styling. The one that is shown in the preview is the expected result (and Anki Desktop result, in fact)..

Actual behaviour

The result differs, the expected styling from the preview window doesn't appear on the actual review window and can't be fixed.

This is the preview output (and what I'd want to see and what appears on Anki): previewer

This is the actual reviewer output: reviewer

Debug info

Backend Version = 0.1.38-anki24.04.1 (24.04.1 ccd9ca1a8309b80bcb50ddc5d99c7ce63440bce9)

Android Version = 13 (SDK 33)

ProductFlavor = full

Manufacturer = Xiaomi

Model = M2102J20SG

Hardware = qcom

Webview User Agent = Mozilla/5.0 (Linux; Android 13; M2102J20SG Build/TQ2B.230505.005.A1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36

ACRA UUID = df8be713-dc4c-4dc4-8012-5d2565b4c3d5

FSRS Enabled = false

Crash Reports Enabled = true`

(Optional) Anything else you want to share?

This bug has been reported and confirmed by others on the Anki forums.

It is suggested it has something to do with the button.

Research

  • [X] I am reporting a bug specific to AnkiDroid (Android app)
  • [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)

soliviantar avatar May 19 '24 11:05 soliviantar

The reviewer uses outdated code whereas previewer uses the updated webview which matches Anki desktop, it will be soon updated though

criticalAY avatar May 20 '24 11:05 criticalAY

You can track here:

  • #16455

criticalAY avatar May 22 '24 18:05 criticalAY

You can track here:

I can see the PR is merged but is it still only a development only feature? because with the main version I am still experiencing mismatch between previewer and reviewer displays.

imsahsol avatar Aug 10 '24 18:08 imsahsol

This will be fixed under https://github.com/ankidroid/Anki-Android/issues/14302 and the setting is in 'development mode'

Work should be focused on the linked issue

  • https://github.com/ankidroid/Anki-Android/issues/14302

david-allison avatar Aug 22 '24 16:08 david-allison