Anki-Android
Anki-Android copied to clipboard
Scaling Bitmaps don't work on New Study Screen Whiteboard
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 Desktop
What are the steps to reproduce this bug?
- Enable New Study Screen
- Go to a deck card
- Toggle Whiteboard and draw something along the edges
- change layout to horizontal
- the drawing goes out of bounds instead of scaling to the new dimensions
Expected behaviour
The Drawing should scale to the new dimensions instead
Debug info
AnkiDroid Version = 2.24.0alpha11-debug (689a6de3eadc22e6a1a9069a6049581c00dcb049)
Backend Version = 0.1.63-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)
Android Version = 15 (SDK 35)
ProductFlavor = play
Device Info = vivo | vivo | V2338 | V2338i | V2338 | qcom
WebView Info = [com.google.android.webview | 768011903]: Mozilla/5.0 (Linux; Android 15; V2338 Build/AP3A.240905.015.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/146.0.7680.119 Mobile Safari/537.36
ACRA UUID = e21711d5-ab25-4a6d-9b0f-706744c7103e
FSRS = 5.1.0 (Enabled: false)
Crash Reports Enabled = false
(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
- [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
This is because in WhiteboardView.kt, function onSizeChanged does not transform the path into a new matrix, fixed through
history.forEach {
it.path.transform(currentMatrix)
}
Writing a unit test then will pr
Additionally, while working on this, i found out that the path drawing is not bound to the whiteboard dimensions and can draw 'beneath' the other layers as well, isn't a consequential bug but exists regardless