diff --git a/services/packagegroup/src/bundle_active_group_controller.cpp b/services/packagegroup/src/bundle_active_group_controller.cpp index 888f08ea014509b2c70c25ef1769dce33e9eb4cf..1004976dfb74f6e70db92b84bfb5e65ad12fab0d 100644 --- a/services/packagegroup/src/bundle_active_group_controller.cpp +++ b/services/packagegroup/src/bundle_active_group_controller.cpp @@ -384,9 +384,9 @@ void BundleActiveGroupController::ShutDown(const int64_t bootBasedTimeStamp, con bool BundleActiveGroupController::IsScreenOn() { - bool result = PowerMgrClient::GetInstance().IsScreenOn(); - BUNDLE_ACTIVE_LOGI("IsScreenOn() is %{public}d", result); - return result; + auto result = PowerMgrClient::GetInstance().IsScreenOn(); + BUNDLE_ACTIVE_LOGI("IsScreenOn() is %{public}d", result.GetData()); + return result.IsOk() && result.GetData(); } } // namespace DeviceUsageStats } // namespace OHOS