!44933 修复无障碍判空在使用对象的后面

Merge pull request !44933 from guan0/master
This commit is contained in:
openharmony_ci 2024-10-08 03:28:35 +00:00 committed by Gitee
commit a782223789
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -597,8 +597,8 @@ void TextFieldPattern::SetAccessibilityPasswordIconAction()
auto node = passwordArea->GetFrameNode();
CHECK_NULL_VOID(node);
auto textAccessibilityProperty = node->GetAccessibilityProperty<AccessibilityProperty>();
textAccessibilityProperty->SetAccessibilityLevel("yes");
CHECK_NULL_VOID(textAccessibilityProperty);
textAccessibilityProperty->SetAccessibilityLevel("yes");
textAccessibilityProperty->SetAccessibilityText(GetPasswordIconPromptInformation(passwordArea->IsObscured()));
}
}
@ -611,8 +611,8 @@ void TextFieldPattern::SetAccessibilityClearAction()
auto stackNode = cleanNodeResponseArea->GetFrameNode();
CHECK_NULL_VOID(stackNode);
auto textAccessibilityProperty = stackNode->GetAccessibilityProperty<AccessibilityProperty>();
textAccessibilityProperty->SetAccessibilityLevel("yes");
CHECK_NULL_VOID(textAccessibilityProperty);
textAccessibilityProperty->SetAccessibilityLevel("yes");
auto layoutProperty = GetHost()->GetLayoutProperty<TextFieldLayoutProperty>();
CHECK_NULL_VOID(layoutProperty);
auto cleanNodeStyle = layoutProperty->GetCleanNodeStyleValue(CleanNodeStyle::INPUT);