Julian Winkler
4a4b4a4722
api-impl: misc stubs and fixes for several apps including F-Droid and AuroraStore
2025-03-25 23:34:56 +01:00
Mis012
ca39c81224
Drawable: fix theme not getting passed to newly inflated drawables
...
When Theme support was added, not everything was immediately updated
to use theme information properly. This was fixed in a lot of places
since then, but it seems not here.
2025-02-27 22:44:55 +01:00
Julian Winkler
24f839f556
make android.text.Layout.draw() compatible custom Canvas classes
...
TextAndroidCanvas is a proxy canvas class which prevents us from
accessing the GtkSnapshot of the real canvas. To solve this problem, we
call Canvas.drawText() for each line.
2025-02-24 21:49:46 +01:00
Julian Winkler
4bb5dfd86e
Paint: implement textAlign and text bounds
2025-02-24 21:45:36 +01:00
Julian Winkler
587aeaba74
Canvas: implement drawCircle() and a drawText() variant
2025-02-24 21:45:36 +01:00
Julian Winkler
3fb1f56da2
api-impl: add misc APIs for Open Sudoku
2025-02-24 21:45:36 +01:00
Mis012
899805f23f
Canvas: add drawLines
2025-02-15 21:42:21 +01:00
Mis012
453224cf31
api-impl: misc stubs and trivial impls
2025-02-15 21:42:21 +01:00
Mis012
df03617f13
api-impl: add ClipDrawable from AOSP
...
taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
2025-02-15 21:24:26 +01:00
Julian Winkler
1eb0a5074f
Canvas: fix NullPointerException in setBitmap()
2025-02-15 08:21:30 +01:00
Julian Winkler
5375f4b5fd
implement android.text.Layout using PangoLayout
...
This is needed to have proper line wrapping in composeUI apps.
In the CTS, android.text.cts.StaticLayoutTest passes all checks now.
2025-02-13 07:01:17 +01:00
Julian Winkler
829df70a9f
Canvas: fix some issues spotted by the CTS
2025-02-13 06:56:31 +01:00
Julian Winkler
1cf48085ff
api-impl: add misc APIs needed for AntennaPod
2025-02-10 21:55:27 +01:00
Julian Winkler
652715ee00
Canvas: add more Bitmap drawing methods
2025-02-10 21:55:14 +01:00
Julian Winkler
f69cff7113
implement Bitmap.compress()
2025-02-10 21:55:14 +01:00
Julian Winkler
e9769c1587
Bitmap: explicitly store whether it was recycled
2025-02-10 21:55:14 +01:00
Mis012
ab5b600bf1
run whitespace_format.py --add-new-line-marker-at-end-of-file --remove-trailing-whitespace --remove-trailing-empty-lines --new-line-marker=linux --normalize-non-standard-whitespace=remove on src/
2025-02-05 16:27:17 +01:00
Julian Winkler
111a90e554
add Bitmap.isMutable()
...
In our implementation all bitmaps are mutable
2025-01-26 22:27:43 +01:00
Julian Winkler
98e7989ccb
api-impl: fixes for apps using old support library
2025-01-13 14:17:40 +01:00
Julian Winkler
7700d8bf11
replace VectorDrawable with AOSP implementation from Android 6
...
This way, we can avoid librsvg which causes stack overflows on
Alpine/postmarketOS, because of musl's limited stack size.
2025-01-11 23:23:53 +01:00
Julian Winkler
57dd86fc98
api-impl: misc stubs for WhatsApp
2025-01-11 22:42:25 +01:00
Mis012
7354864e34
Path: stub out the rest of addRoundRect variants
2025-01-02 22:39:57 +01:00
Mis012
279c95becb
borrow relevant parts of AOSP commit dbee9bb342cdfaa5155b1918f90262c05e2464cb
...
Our SVG-based VectorDrawable implementation still relies on `getDefaultColor`
but exceptions are no longer thrown when parsing VectorDrawable xml files
which use gradients as colors.
2025-01-02 22:25:13 +01:00
Pierre-Hugues Husson
c81442321e
api-impl: stubs and fixes for latest WhatsApp version
2025-01-01 11:33:16 +01:00
Julian Winkler
bf923cfcfa
Bitmap: create Texture as GdkMemoryTexture if nothing has to be rendered
...
This improves OsmAnd V1 renderer performance.
2024-12-22 23:40:11 +01:00