ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.15k stars 2.17k forks source link

[BUG]: Previewer and reviewer mismatch #16429

Open soliviantar opened 1 month ago

soliviantar commented 1 month ago

Checked for duplicates?

Does it also happen in the desktop version?

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

criticalAY commented 1 month ago

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

criticalAY commented 1 month ago

You can track here: