mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
add log and avoid fireOnSelectionChange
Signed-off-by: x00893483 <xiangyuan6@huawei.com>
This commit is contained in:
parent
ec68c11c8d
commit
09c18ab203
@ -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);
|
||||
|
@ -257,7 +257,7 @@ public:
|
||||
eventHub_->SetVisibleAreaRatiosAndCallback(callback, ratios, false);
|
||||
}
|
||||
|
||||
void SetIsCalculateInnerClip(bool isCalculateInnerClip = false)
|
||||
void SetIsCalculateInnerVisibleRectClip(bool isCalculateInnerClip = true)
|
||||
{
|
||||
isCalculateInnerVisibleRectClip_ = isCalculateInnerClip;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user