fix:Networking is not allowed until the first unlocking after restart

Signed-off-by: libping <libaoping1@huawei.com>
This commit is contained in:
libping 2024-08-16 16:45:08 +08:00
parent 5cc50d66ee
commit b62f7f5aae
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;