In my case the slider did not update the change of isEnabled field. Only this solution of viktor1995 works for me. layoutIfNeeded() alone was not enough.
In my case the slider did not update the change of isEnabled field. Only this solution of viktor1995 works for me. layoutIfNeeded() alone was not enough.