Skip to content

Commit

Permalink
fix: Set unchecked state by default
Browse files Browse the repository at this point in the history
Fixes weirdly switch checked state
  • Loading branch information
aikrq committed Jan 2, 2025
1 parent 6acec3a commit 4d884f8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ public void onBindViewHolder(ViewHolder holder, final int position) {
onItemClicked(binding, library.getName());
});

binding.materialSwitch.setChecked(false);
if (!notAssociatedWithProject) {
for (Map<String, Object> libraryMap : projectUsedLibs) {
if (library.getName().equals(libraryMap.get("name").toString())) {
Expand Down

0 comments on commit 4d884f8

Please sign in to comment.