diff --git a/fabulous/src/main/kotlin/com/fueled/fabulous/Fabulous.kt b/fabulous/src/main/kotlin/com/fueled/fabulous/Fabulous.kt index f618340..be168a4 100644 --- a/fabulous/src/main/kotlin/com/fueled/fabulous/Fabulous.kt +++ b/fabulous/src/main/kotlin/com/fueled/fabulous/Fabulous.kt @@ -162,7 +162,7 @@ class Fabulous(val activity: Activity) { newButton.setImageDrawable(item.icon) newButton.x = fab!!.x newButton.y = fab!!.y - if (backgroundTint > 0) { + if (backgroundTint < 0) { newButton.backgroundTintList = ColorStateList.valueOf(ContextCompat.getColor(activity, backgroundTint)) } newButton.setOnClickListener({ @@ -272,4 +272,4 @@ class Fabulous(val activity: Activity) { } -} \ No newline at end of file +}