Commit dd8a22e
committed
I've refactored the Send button logic for accessibility and text input state.
The Send button behavior in PhotoReasoningScreen has been updated
to meet the following requirements:
1. The button performs the SEND action and appears ACTIVE (primary tint):
- Only when Accessibility Service is ON AND Text Input is NOT BLANK.
2. The button performs the GO TO ACCESSIBILITY SETTINGS action and appears ACTIVE (primary tint):
- When Accessibility Service is OFF (regardless of Text Input state).
3. The button performs NO action and appears INACTIVE (gray tint):
- When Accessibility Service is ON AND Text Input is BLANK.
Changes include:
- I modified the `enabled` property of the Send `IconButton`.
- I updated the `onClick` lambda to branch correctly based on service state and text input.
- I adjusted the `Icon` tint to visually reflect whether the button has an available function.1 parent d8681a9 commit dd8a22e
1 file changed
Lines changed: 21 additions & 13 deletions
Lines changed: 21 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
368 | 375 | | |
369 | | - | |
370 | | - | |
371 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
372 | 385 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | 386 | | |
379 | 387 | | |
380 | 388 | | |
| |||
0 commit comments