зеркало из https://github.com/mozilla/pjs.git
Bug 705084 - Part B - Use kDefaultRemainingTime instead of kUnknownRemaining time when appropriate in UPower backend. r=cjones
This commit is contained in:
Родитель
6e720e2466
Коммит
375257e721
|
@ -199,7 +199,7 @@ UPowerClient::UPowerClient()
|
||||||
, mTrackedDevice(nsnull)
|
, mTrackedDevice(nsnull)
|
||||||
, mLevel(kDefaultLevel)
|
, mLevel(kDefaultLevel)
|
||||||
, mCharging(kDefaultCharging)
|
, mCharging(kDefaultCharging)
|
||||||
, mRemainingTime(kUnknownRemainingTime)
|
, mRemainingTime(kDefaultRemainingTime)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -279,7 +279,7 @@ UPowerClient::StopListening()
|
||||||
// We should now show the default values, not the latest we got.
|
// We should now show the default values, not the latest we got.
|
||||||
mLevel = kDefaultLevel;
|
mLevel = kDefaultLevel;
|
||||||
mCharging = kDefaultCharging;
|
mCharging = kDefaultCharging;
|
||||||
mRemainingTime = kUnknownRemainingTime;
|
mRemainingTime = kDefaultRemainingTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Загрузка…
Ссылка в новой задаче