From a3242e1109be081682c806bc50a10943f6325e90 Mon Sep 17 00:00:00 2001 From: eddy Date: Wed, 14 Oct 2026 20:50:13 +0200 Subject: [PATCH] Revert: terug naar standaard MaterialSwitch (geen eigen switch-tinten) --- .../java/nl/eddydevink/buschauffeurswekker/MainActivity.kt | 4 ++-- app/src/main/res/color/switch_thumb_wit.xml | 4 ---- app/src/main/res/layout/item_alarm_card.xml | 5 ++--- 3 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 app/src/main/res/color/switch_thumb_wit.xml diff --git a/app/src/main/java/nl/eddydevink/buschauffeurswekker/MainActivity.kt b/app/src/main/java/nl/eddydevink/buschauffeurswekker/MainActivity.kt index 549f150..89cbb99 100644 --- a/app/src/main/java/nl/eddydevink/buschauffeurswekker/MainActivity.kt +++ b/app/src/main/java/nl/eddydevink/buschauffeurswekker/MainActivity.kt @@ -14,8 +14,8 @@ import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.core.content.ContextCompat import androidx.lifecycle.lifecycleScope -import androidx.appcompat.widget.SwitchCompat import com.google.android.material.card.MaterialCardView +import com.google.android.material.materialswitch.MaterialSwitch import kotlinx.coroutines.launch import nl.eddydevink.buschauffeurswekker.core.AlarmScheduler import nl.eddydevink.buschauffeurswekker.core.AlarmSpec @@ -129,7 +129,7 @@ class MainActivity : AppCompatActivity() { card.findViewById(R.id.tv_name).text = spec.name val timeView = card.findViewById(R.id.tv_time) timeView.text = TIME.format(spec.time) - val switch = card.findViewById(R.id.switch_alarm) + val switch = card.findViewById(R.id.switch_alarm) switch.setOnCheckedChangeListener(null) switch.isChecked = !disabled // Heldere statetoestand: blauw = aan, grijs = uit. diff --git a/app/src/main/res/color/switch_thumb_wit.xml b/app/src/main/res/color/switch_thumb_wit.xml deleted file mode 100644 index 9dbbc06..0000000 --- a/app/src/main/res/color/switch_thumb_wit.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/item_alarm_card.xml b/app/src/main/res/layout/item_alarm_card.xml index e32b22e..1081a7f 100644 --- a/app/src/main/res/layout/item_alarm_card.xml +++ b/app/src/main/res/layout/item_alarm_card.xml @@ -55,11 +55,10 @@ android:textStyle="bold" /> - + android:contentDescription="Wekker aan of uit" /> \ No newline at end of file