mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-26 17:31:26 +00:00
!1066 UIExtension模系统弹框断连消息问题适配
Merge pull request !1066 from liuhanxiong/master
This commit is contained in:
commit
54f359b137
@ -32,8 +32,6 @@ void UIExtensionAbilityConnection::OnAbilityConnectDone(const AppExecFwk::Elemen
|
||||
std::lock_guard<std::recursive_mutex> lock(mutex_);
|
||||
if (!isConnectionRelease_) {
|
||||
IAM_LOGE("connection already release");
|
||||
ReleaseUIExtensionComponentInner();
|
||||
WidgetClient::Instance().ForceStopAuth();
|
||||
return;
|
||||
}
|
||||
if (remoteObject == nullptr) {
|
||||
@ -69,7 +67,10 @@ void UIExtensionAbilityConnection::OnAbilityDisconnectDone(const AppExecFwk::Ele
|
||||
IAM_LOGI("on ability disconnected");
|
||||
std::lock_guard<std::recursive_mutex> lock(mutex_);
|
||||
connectAbilityHitrace_ = nullptr;
|
||||
ReleaseUIExtensionComponentInner();
|
||||
if (!isConnectionRelease_) {
|
||||
IAM_LOGE("connection already release");
|
||||
return;
|
||||
}
|
||||
WidgetClient::Instance().ForceStopAuth();
|
||||
}
|
||||
|
||||
|
@ -477,6 +477,7 @@ bool WidgetContext::DisconnectExtension()
|
||||
IAM_LOGE("invalid connection handle");
|
||||
return false;
|
||||
}
|
||||
WidgetClient::Instance().ForceStopAuth();
|
||||
connection_->ReleaseUIExtensionComponent();
|
||||
ErrCode ret = AAFwk::ExtensionManagerClient::GetInstance().DisconnectAbility(connection_);
|
||||
connection_ = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user