!7292 Networking is not allowed until the first unlocking after restart

Merge pull request !7292 from libaoping28/master
This commit is contained in:
openharmony_ci 2024-08-17 11:42:47 +00:00 committed by Gitee
commit 9fd1455a4e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -46,6 +46,7 @@ int32_t LnnTriggerDataLevelHeartbeat(void);
int32_t LnnTriggerCloudSyncHeartbeat(void);
void LnnRegDataLevelChangeCb(const IDataLevelChangeCallback *callback);
void LnnUnregDataLevelChangeCb(void);
bool IsHeartbeatEnable(void);
#ifdef __cplusplus
}

View File

@ -102,7 +102,7 @@ static void InitHbSpecificConditionState(void)
}
}
static bool IsHeartbeatEnable(void)
bool IsHeartbeatEnable(void)
{
if ((g_hbConditionState.lockState == SOFTBUS_SCREEN_LOCK_UNKNOWN) && IsActiveOsAccountUnlocked()) {
g_hbConditionState.lockState = SOFTBUS_SCREEN_UNLOCK;