From c7b35735967ac25185583919c9af9fae6fab6d53 Mon Sep 17 00:00:00 2001 From: Felipe Teixeira Date: Thu, 12 Dec 2024 09:31:38 -0300 Subject: [PATCH] fix(editor): use setColor instead only color --- .../java/com/itsaky/androidide/editor/ui/EditorActionsMenu.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/impl/src/main/java/com/itsaky/androidide/editor/ui/EditorActionsMenu.kt b/editor/impl/src/main/java/com/itsaky/androidide/editor/ui/EditorActionsMenu.kt index a04da6d9b7..ded860705e 100644 --- a/editor/impl/src/main/java/com/itsaky/androidide/editor/ui/EditorActionsMenu.kt +++ b/editor/impl/src/main/java/com/itsaky/androidide/editor/ui/EditorActionsMenu.kt @@ -198,7 +198,7 @@ open class EditorActionsMenu(val editor: IDEEditor) : val drawable = GradientDrawable() drawable.shape = GradientDrawable.RECTANGLE drawable.cornerRadius = SizeUtils.dp2px(28f).toFloat() // Recommeneded size is 28dp - drawable.color = editor.context.resolveAttr(R.attr.colorSurface) + drawable.setColor(editor.context.resolveAttr(R.attr.colorSurface)) drawable.setStroke(SizeUtils.dp2px(1f), editor.context.resolveAttr(R.attr.colorOutline)) list.background = drawable }