jamesmontemagno / BatteryPlugin

Battery Plugin for Xamarin and Windows
MIT License
27 stars 18 forks source link

[UWP] Always report 'Full' when is not #3

Closed farlop closed 7 years ago

farlop commented 8 years ago

Please fill out either the bug or feature request section and remove whatever section you are not using.

Bug

Version Number of Plugin: 2.1.0 Device Tested On: Windows 10 (PC & Mobile)

Expected Behavior

Should not be Full if the percentage is less than 100% (Charging or discharging...)

Actual Behavior

Always reports Full, due to the wrong IF condition in line 92:

if (percentage >= 1.0)

it should be >=100, as percentage is 0-100

Englund0110 commented 7 years ago

Anything new on this issue?

jamesmontemagno commented 7 years ago

PUshing out 2.1.1