Show peripheral low battery notification for NoCharge
ClosedPublic

Authored by broulik on Dec 13 2019, 1:51 PM.

Details

Summary

BlueZ doesn't report charge state, only percentage, so it is unfortunately always NoCharge for them.
Add an additional guard to check for "0%" charge explicitly just in case.

Test Plan
  • Got a notificaton about my headphones running low

Diff Detail

Repository
R122 Powerdevil
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Dec 13 2019, 1:51 PM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 13 2019, 1:51 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Dec 13 2019, 1:51 PM
This revision was not accepted when it landed; it landed in state Needs Review.Dec 20 2019, 9:08 AM
This revision was automatically updated to reflect the committed changes.