[Verification] Code compiles.
TCT pass rate 100% (auto and manual)
Now system side brightness is restored when
application is closed/terminated.
Change-Id: I9fe5a60c7f4f85e5ed9f891f16fb7e5cf57ee857
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
(cherry picked from commit
6b9c2ba596d9358e319717139a7c51c6de261563)
PowerInstance::~PowerInstance() {
LoggerD("Enter");
+
PowerManager::GetInstance()->RemoveListener(this);
+
+ PlatformResult result = PowerManager::GetInstance()->RestoreScreenBrightness();
+ if (result.IsError()) {
+ LoggerE("Failed to restore brightness.");
+ }
}
enum PowerCallbacks {