Commit 1ac082f
SettingActivity: keep exactly one radio option selected
Clicking the already-selected radio option used to deselect it and save
an empty string for the setting. This broke the invariant that a radio
group always has exactly one selection: users could tap the active
option, hit Save, and end up with an empty `wallet_type` (in
Lightning Piggy) or any other required radio setting cleared.
Re-check the target on an un-check attempt so the selection sticks.
Users change their pick by clicking a different option, which is the
normal radio-group convention.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 6e415bb commit 1ac082f
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
149 | 155 | | |
150 | | - | |
151 | | - | |
| 156 | + | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
0 commit comments