forked from organicmaps/organicmaps
[power manager] disable traffic jams when power scheme is switched from Auto to EconomyMaximum.
This commit is contained in:
parent
5abd9588e6
commit
0944c0a3aa
2 changed files with 7 additions and 0 deletions
|
@ -3812,6 +3812,12 @@ void Framework::OnPowerFacilityChanged(power_management::Facility const facility
|
|||
}
|
||||
}
|
||||
|
||||
void Framework::OnPowerSchemeChanged(power_management::Scheme const actualScheme)
|
||||
{
|
||||
if (actualScheme == power_management::Scheme::EconomyMaximum && GetTrafficManager().IsEnabled())
|
||||
GetTrafficManager().SetEnabled(false);
|
||||
}
|
||||
|
||||
TipsApi const & Framework::GetTipsApi() const
|
||||
{
|
||||
return m_tipsApi;
|
||||
|
|
|
@ -920,4 +920,5 @@ public:
|
|||
|
||||
// PowerManager::Subscriber override.
|
||||
void OnPowerFacilityChanged(power_management::Facility const facility, bool enabled) override;
|
||||
void OnPowerSchemeChanged(power_management::Scheme const actualScheme) override;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue