`segmentedControl.addSegments(getResources().getStringArray(R.array.segments));` gives me this error in kotlin 