From 30807219b3c535231ad360d52ef8ca7d6969571c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Bal=C3=A1k?= Date: Mon, 25 Feb 2019 19:06:00 +0100 Subject: [PATCH] FIX: fix switch symbol color --- .../android/formbuilderlibrary/element/LabelSwitchElement.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formbuilderlibrary/src/main/java/cz/qase/android/formbuilderlibrary/element/LabelSwitchElement.kt b/formbuilderlibrary/src/main/java/cz/qase/android/formbuilderlibrary/element/LabelSwitchElement.kt index 8dccba2..66071ca 100644 --- a/formbuilderlibrary/src/main/java/cz/qase/android/formbuilderlibrary/element/LabelSwitchElement.kt +++ b/formbuilderlibrary/src/main/java/cz/qase/android/formbuilderlibrary/element/LabelSwitchElement.kt @@ -46,7 +46,7 @@ class LabelSwitchElement(private val label: String, private fun prepareSwitch(inflater: LayoutInflater, context: Context, formStyleBundle: FormStyleBundle, root: ViewGroup): SwitchCompat { val switchView = inflater.inflate(switchComponent, root, false) as SwitchCompat switchView.isChecked = checked - switchView.setColor(formStyleBundle.primaryBackgroundColor, context) + switchView.setColor(formStyleBundle.primaryTextColor, context) switchView.setTextColorResourceId(context, formStyleBundle.secondaryTextColor) switchView.setOnCheckedChangeListener { _, isChecked -> checked = isChecked