Commit 4d82bb4
committed
Battery: Regroup the battery hub details by subject
Promoting five readings into the tile grid left the detail sections named
after what they used to hold ("Charging", "Health", "Electrical"), which no
longer described their contents. The rows are now split by what the fact is
about: "This battery" carries technology, battery health, charge cycles and
charge remaining, "This charger" carries the power source and the charger's
advertised maximum.
"Charge counter" was the raw Android property name (BATTERY_PROPERTY_CHARGE_
COUNTER) surfacing in the UI and read as the cell's capacity. It is the charge
currently in the cell, tracking the battery level, so it now reads "Charge
remaining". "Health" becomes "Battery health", which also removes the
title/row text collision the hub test had to work around.
The battery section is deliberately first: unplugged, both charger rows read
"Not reported", so a charger-first order would open the list with two empty
rows in the most common state.1 parent 5a8dabb commit 4d82bb4
3 files changed
Lines changed: 31 additions & 32 deletions
File tree
- app/src
- main
- java/eu/darken/amply/main/ui/battery
- res/values
- test/java/eu/darken/amply/main/ui/battery
Lines changed: 19 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
267 | 269 | | |
268 | 270 | | |
269 | 271 | | |
| 272 | + | |
270 | 273 | | |
271 | | - | |
| 274 | + | |
272 | 275 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 276 | + | |
278 | 277 | | |
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | 281 | | |
290 | 282 | | |
291 | 283 | | |
| |||
294 | 286 | | |
295 | 287 | | |
296 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
297 | 293 | | |
298 | 294 | | |
299 | 295 | | |
| 296 | + | |
300 | 297 | | |
301 | | - | |
| 298 | + | |
302 | 299 | | |
303 | | - | |
304 | | - | |
305 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
| |||
311 | 310 | | |
312 | 311 | | |
313 | 312 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | 313 | | |
319 | 314 | | |
320 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | | - | |
| 511 | + | |
| 512 | + | |
514 | 513 | | |
515 | 514 | | |
516 | 515 | | |
517 | | - | |
| 516 | + | |
518 | 517 | | |
519 | 518 | | |
520 | | - | |
| 519 | + | |
521 | 520 | | |
522 | 521 | | |
523 | 522 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
149 | 148 | | |
150 | 149 | | |
151 | 150 | | |
152 | | - | |
153 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
| |||
0 commit comments