Commit 471d0c5
fix(settings): make whole toggle row tappable; clarify OEM keep-alive button (#22)
Two phone-only UX fixes that the on-device test surfaced.
1. The Material3 Switch widget is small on a real phone, and the
surrounding ToggleRow had no click handler of its own. Tapping the
label area did nothing, so the suggestions, network, and update-check
toggles all felt "stuck in their default position" even though the
wiring underneath was fine. Use the canonical Compose pattern:
Modifier.toggleable on the Row (role = Role.Switch), with the inner
Switch as a visual indicator (onCheckedChange = null) so there are no
competing click handlers. The whole row is now a single, accessible
click target.
2. Rename the "Keep it alive on your phone" button to "Open OEM
keep-alive guide (web)". The old text implied the app could do it
itself; in reality the button opens the dontkillmyapp.com page in a
browser. The new label says what it actually does.
Co-authored-by: FlintWave <flintwave@tuta.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 3b0b34d commit 471d0c5
2 files changed
Lines changed: 17 additions & 3 deletions
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
327 | 332 | | |
328 | | - | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
329 | 343 | | |
330 | 344 | | |
331 | 345 | | |
| |||
339 | 353 | | |
340 | 354 | | |
341 | 355 | | |
342 | | - | |
| 356 | + | |
343 | 357 | | |
344 | 358 | | |
345 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments