Fix light theme by making checkboxes visible

This commit is contained in:
fgerber 2024-03-07 12:56:13 +01:00
parent 968f4206cc
commit 8ccfbefbe0

View File

@ -130,7 +130,7 @@ class GeolocListAdapter(
} }
private fun refreshCheck(geoLoc: GeoLoc){ private fun refreshCheck(geoLoc: GeoLoc){
val col = groups!!.getGroupFromKey(visits!!.getVisited(geoLoc))?.color?.color?:Color.WHITE val col = groups!!.getGroupFromKey(visits!!.getVisited(geoLoc))?.color?.color?:Color.GRAY
checkBox.checkedState = checkBox.checkedState =
if (visits!!.getVisited(geoLoc)!=0) MaterialCheckBox.STATE_CHECKED if (visits!!.getVisited(geoLoc)!=0) MaterialCheckBox.STATE_CHECKED
else if (geoLoc.children.any { visits!!.getVisited(it)!=0 }) MaterialCheckBox.STATE_INDETERMINATE else if (geoLoc.children.any { visits!!.getVisited(it)!=0 }) MaterialCheckBox.STATE_INDETERMINATE