Don't force reload profile when battery status changed

Review Request #127160 - Created Feb. 23, 2016 and submitted

Information
Xuetian Weng
powerdevil
master
Reviewers
plasma
broulik

But I have a device that could discharging even when AC on when high load happens, and status of battery changes frequently under such case.

loadProfile(force=true) would make my AC profile being loaded again and again thus my adjusted brightness level is reset again and again, which is extremely annoying. Not sure if we really need to reparseConfiguration() and loadProfile(true) when battery status changed, isn't loadProfile() is good enough? onAcAdapterStateChanged() only uses loadProfile().

not sure if this can causes any regression, but profile is not reset to settings when battery status changed.

Kai Uwe Broulik
Xuetian Weng
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit f5449a05a6e7fda8a00ace21bc7401ed33712a80 by Weng Xuetian to branch master.
Loading...