Skip to content

Commit

Permalink
FIX: fix switch symbol color
Browse files Browse the repository at this point in the history
  • Loading branch information
Zdeněk Balák committed Feb 25, 2019
1 parent 5cfbc53 commit 3080721
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3080721

Please sign in to comment.