add log and avoid fireOnSelectionChange

Signed-off-by: x00893483 <xiangyuan6@huawei.com>
This commit is contained in:
x00893483 2024-11-08 11:53:10 +08:00
parent ec68c11c8d
commit 09c18ab203
3 changed files with 4 additions and 4 deletions

View File

@ -280,7 +280,7 @@ void DataDetectorAdapter::InitTextDetect(int32_t startPos, std::string detectTex
auto backgroundExecutor = SingleTaskExecutor::Make(context->GetTaskExecutor(), TaskExecutor::TaskType::BACKGROUND);
backgroundExecutor.PostTask(
[info, textFunc] {
TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::InitTextDetect, start AI detect, length: %{public}lu",
TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::InitTextDetect, start AI detect, length: %{public}zu",
info.text.size());
DataDetectorMgr::GetInstance().DataDetect(info, textFunc);
},
@ -346,7 +346,7 @@ void DataDetectorAdapter::HandleUrlResult(std::vector<UrlEntity> urlEntities)
void DataDetectorAdapter::ParseAIResult(const TextDataDetectResult& result, int32_t startPos)
{
TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::ParseAIResult, ResultLength: %{public}lu, id: %{public}i",
TAG_LOGI(AceLogTag::ACE_TEXT, "DataDetectorAdapter::ParseAIResult, ResultLength: %{public}zu, id: %{public}i",
result.entity.size(), GetHost() ? GetHost()->GetId() : -1);
auto entityJson = JsonUtil::ParseJsonString(result.entity);
CHECK_NULL_VOID(entityJson);

View File

@ -257,7 +257,7 @@ public:
eventHub_->SetVisibleAreaRatiosAndCallback(callback, ratios, false);
}
void SetIsCalculateInnerClip(bool isCalculateInnerClip = false)
void SetIsCalculateInnerVisibleRectClip(bool isCalculateInnerClip = true)
{
isCalculateInnerVisibleRectClip_ = isCalculateInnerClip;
}

View File

@ -6488,7 +6488,7 @@ void TextFieldPattern::CreateErrorParagraph(const std::string& content)
accessibilityProperty->SetAccessibilityLevel("yes");
auto parentID = host->GetInspectorIdValue("");
errorTextNode_->UpdateInspectorId(INSPECTOR_PREFIX + ERRORNODE_PREFIX + parentID);
errorTextNode_->SetIsCalculateInnerClip(true);
errorTextNode_->MarkModifyDone();
errorTextNode_->MarkDirtyNode(PROPERTY_UPDATE_MEASURE_SELF_AND_CHILD);
auto context = errorTextNode_->GetRenderContext();