From e3ab7f702f11625440645a54a1b8076602659be2 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Sat, 14 Nov 2026 16:00:13 +0100 Subject: [PATCH] fix(ui-core): keep the ripple together with the border foreground on android The ripple was set with view.setForeground(), which replaced the border the core draws over the children (and was replaced by it): a view with a border radius, a border width and a rippleColor lost its border. The ripple is now given to the core (_rippleForeground), which keeps both in its foreground. Without the core's _updateForeground(), the foreground is set as before. Co-Authored-By: Claude Sonnet 5.5 --- src/ui-core/index.android.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ui-core/index.android.ts b/src/ui-core/index.android.ts index d8b2952..f856e48 100644 --- a/src/ui-core/index.android.ts +++ b/src/ui-core/index.android.ts @@ -284,7 +284,13 @@ export function overrideViewBase() { if (!this.rippleDrawable) { this.rippleDrawable = createRippleDrawable(this.getRippleColor(), topLeftRadius, topRightRadius, bottomRightRadius, bottomLeftRadius); if (isPostMarshmallow) { - view.setForeground(this.rippleDrawable); + // the core shares the foreground with the border it draws over the children + if (typeof (this as any)._updateForeground === 'function') { + (view as any)._rippleForeground = this.rippleDrawable; + (this as any)._updateForeground(); + } else { + view.setForeground(this.rippleDrawable); + } } } }