Bug 1257618 - Kill bogus "level should increase" when charging message r=snorp

The battery level can decrease while we're trying to charge. Most commonly
many devices oscillate between 99% and 100% when fully charged. This situation
could also happen if the device is receiving less power than it's using. Therefore
we shouldn't treat this as an extraordinary situation.

MozReview-Commit-ID: eN3W9P5oty

--HG--
extra : amend_source : abd0231d8514a9bbe9d8ad21ed2de7dba68bbc91
This commit is contained in:
Andrzej Hunt 2016-03-17 11:33:41 -07:00
Родитель 2d75916664
Коммит 95e911418a
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -128,7 +128,6 @@ public class GeckoBatteryManager extends BroadcastReceiver {
if (sCharging) {
if (dLevel < 0) {
Log.w(LOGTAG, "When charging, level should increase!");
sRemainingTime = kUnknownRemainingTime;
} else {
sRemainingTime = Math.round(dt / dLevel * (1.0 - sLevel));