From 8ccfbefbe0e80afd365c0dd2547b59f64ff38949 Mon Sep 17 00:00:00 2001 From: fgerber Date: Thu, 7 Mar 2024 12:56:13 +0100 Subject: [PATCH] Fix light theme by making checkboxes visible --- .../net/helcel/beendroid/activity/adapter/GeolocListAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/helcel/beendroid/activity/adapter/GeolocListAdapter.kt b/app/src/main/java/net/helcel/beendroid/activity/adapter/GeolocListAdapter.kt index 69b5e5a..a9df7b1 100644 --- a/app/src/main/java/net/helcel/beendroid/activity/adapter/GeolocListAdapter.kt +++ b/app/src/main/java/net/helcel/beendroid/activity/adapter/GeolocListAdapter.kt @@ -130,7 +130,7 @@ class GeolocListAdapter( } 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 = if (visits!!.getVisited(geoLoc)!=0) MaterialCheckBox.STATE_CHECKED else if (geoLoc.children.any { visits!!.getVisited(it)!=0 }) MaterialCheckBox.STATE_INDETERMINATE