Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e09cc549 authored by Stefano Angeleri's avatar Stefano Angeleri
Browse files

Use the actual charging status instead of the plugged status to determine if...

Use the actual charging status instead of the plugged status to determine if the battery is charging.

While usually when a device is plugged in (usb for example) it's actually charging, there are cases when this isn't true.
For example, since recently the zte blade has an option to disable usb charging even if plugged in.
The function works correctly but the battery icon will show the battery charging even if it's effectively not charging or even discharging.

This patch uses the Status information instead of the Plugged information from the received message to show the real status of the battery.

Change-Id: Ib68401040294681824ea0c3fe68391b6a8375a65
parent 17fc45c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment