From 4d884f8838dcdd75f70e476d2cdb5745ea8613a3 Mon Sep 17 00:00:00 2001 From: aikrq <95296093+aikrq@users.noreply.github.com> Date: Thu, 2 Jan 2025 23:45:16 +0700 Subject: [PATCH] fix: Set unchecked state by default Fixes weirdly switch checked state --- .../aldi/sayuti/editor/manage/ManageLocalLibraryActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/dev/aldi/sayuti/editor/manage/ManageLocalLibraryActivity.java b/app/src/main/java/dev/aldi/sayuti/editor/manage/ManageLocalLibraryActivity.java index f1e745d1b0..a2b1d30b65 100644 --- a/app/src/main/java/dev/aldi/sayuti/editor/manage/ManageLocalLibraryActivity.java +++ b/app/src/main/java/dev/aldi/sayuti/editor/manage/ManageLocalLibraryActivity.java @@ -309,6 +309,7 @@ public void onBindViewHolder(ViewHolder holder, final int position) { onItemClicked(binding, library.getName()); }); + binding.materialSwitch.setChecked(false); if (!notAssociatedWithProject) { for (Map libraryMap : projectUsedLibs) { if (library.getName().equals(libraryMap.get("name").toString())) {