commit 60644aa9bc8ed150a4a5f66bf9cf79c39fd6372c
parent 8762d77351c0c5378d5a41ed8fa938348e5976af
Author: fmasalha <fmasalha@mozilla.com>
Date: Wed, 29 Oct 2025 20:33:40 +0000
Bug 1997178 - Fixed error in rendering logic for SwitchListItem r=android-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D270588
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/compose/list/ListItem.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/compose/list/ListItem.kt
@@ -511,7 +511,7 @@ fun SwitchListItem(
maxDescriptionLines = maxDescriptionLines,
enabled = enabled,
onClick = { onClick(!checked) },
- beforeListItemAction = if (showSwitchAfter) switch else EmptyListItemSlot,
+ beforeListItemAction = if (showSwitchAfter) EmptyListItemSlot else switch,
afterListItemAction = if (showSwitchAfter) switch else EmptyListItemSlot,
)
}