Commit 484d2c5
committed
FullCharge: State the gesture firing condition in the armed notification
The armed gesture notification passed the latched arming basis
(anyLevelBasis) into the copy. At a holding limit the LIMIT_HOLD branch
wins the latch, so a device sitting at 80% with "Any charge level" on
rendered the identical "Ready at your 80% limit" text as with the option
off - understating a gesture that will in fact re-arm and fire at any
charge level.
The armed and waiting-for-reconnect states now pass the condition the
gesture fires under: the any-level option being on AND its policy
evidence currently PROTECTIVE. Requiring PROTECTIVE evidence avoids the
opposite error of claiming "any charge level" when the option is on but
nothing protective is detected. Idle copy keeps describing the enabled
mode. The engine is untouched, and anyLevelBasis remains in the DEBUG
log line, where the actually-latched basis is the right thing to record.
Fixes review finding F4.1 parent 2ad0a1b commit 484d2c5
3 files changed
Lines changed: 28 additions & 6 deletions
File tree
- app/src
- main/java/eu/darken/amply/fullcharge/core
- test/java/eu/darken/amply/fullcharge/core
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
453 | 458 | | |
454 | 459 | | |
455 | | - | |
| 460 | + | |
| 461 | + | |
456 | 462 | | |
457 | 463 | | |
458 | 464 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| |||
0 commit comments