DescriptionAndroid: fix battery status API charging state.
Define charging attribute in terms of whether the device is
plugged in or not. Previously it was defined in terms of
BATTERY_STATUS_DISCHARGING property but some phones report
BATTERY_STATUS_NOT_CHARGING when the battery is not charging.
Also modified the tests accordingly.
TEST=http://jsbin.com/battery-status-test
BUG=360068
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288361
Patch Set 1 #Patch Set 2 : added comment regarding charging/discharing time. #
Messages
Total messages: 8 (0 generated)
|