mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 02:40:40 +00:00
fix:Networking is not allowed until the first unlocking after restart
Signed-off-by: libping <libaoping1@huawei.com>
This commit is contained in:
parent
5cc50d66ee
commit
b62f7f5aae
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user