Here is my code and I need a comparison function to replace true so it can set different colors. I've tried getBackground() with many errors and I have tried other options on Stack here with no success.
private fun makeColored(view: View) {
when (view.id) {
R.id.box_one_text -> if (true) view.setBackgroundColor(Color.DKGRAY) else view.setBackgroundColor(Color.WHITE)