mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-04 05:22:25 +00:00
log
Signed-off-by: sodanotgreen <limengzheng@huawei.com>
This commit is contained in:
parent
68c7b615bd
commit
7d976021f6
@ -411,11 +411,13 @@ void UIAbility::OnRestoreAbilityState(const AppExecFwk::PacMap &inState)
|
||||
|
||||
void UIAbility::SetWant(const AAFwk::Want &want)
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(wantMutexlock_);
|
||||
setWant_ = std::make_shared<AAFwk::Want>(want);
|
||||
}
|
||||
|
||||
std::shared_ptr<AAFwk::Want> UIAbility::GetWant()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(wantMutexlock_);
|
||||
return setWant_;
|
||||
}
|
||||
|
||||
@ -551,6 +553,7 @@ sptr<IRemoteObject> UIAbility::CallRequest()
|
||||
|
||||
bool UIAbility::IsUseNewStartUpRule()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(wantMutexlock_);
|
||||
if (!isNewRuleFlagSetted_ && setWant_) {
|
||||
startUpNewRule_ = setWant_->GetBoolParam(COMPONENT_STARTUP_NEW_RULES, false);
|
||||
isNewRuleFlagSetted_ = true;
|
||||
|
@ -610,6 +610,7 @@ private:
|
||||
|
||||
std::string identityToken_;
|
||||
bool showOnLockScreen_ = false;
|
||||
std::mutex wantMutexlock_;
|
||||
#endif
|
||||
};
|
||||
} // namespace AbilityRuntime
|
||||
|
Loading…
Reference in New Issue
Block a user