Skip to content

Commit b7012ba

Browse files
Abbondanzometa-codesync[bot]
authored andcommitted
Set anti-alias flag on OutlineDrawable (#54460)
Summary: Pull Request resolved: #54460 Enables anti-aliasing for the `OutlineDrawable`'s `Paint` object. This coincides with the setting being applied to [`BorderDrawable`](https://github.com/facebook/react-native/blob/84ee4d4643d50ae00c381f837fbf628e0ee5acfe/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/BorderDrawable.kt#L89) Changelog: [Internal] Reviewed By: haixia-meta, jorge-cab Differential Revision: D86571281 fbshipit-source-id: e7be79de0dbd0fed03ab1ea9b016bbc0cb92d4d9
1 parent 7486a2b commit b7012ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/OutlineDrawable.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal class OutlineDrawable(
8282
}
8383

8484
private val outlinePaint: Paint =
85-
Paint().apply {
85+
Paint(Paint.ANTI_ALIAS_FLAG).apply {
8686
style = Paint.Style.STROKE
8787
color = outlineColor
8888
strokeWidth = outlineWidth

0 commit comments

Comments
 (0)