mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
view_stack_processor.cpp代码风格修复
Signed-off-by: Lby <liboyu12@huawei.com>
This commit is contained in:
parent
97671fe70c
commit
2cfebd7621
@ -454,7 +454,7 @@ bool ViewStackProcessor::ShouldPopImmediately()
|
||||
auto multiComposedComponent = AceType::DynamicCast<MultiComposedComponent>(GetMainComponent());
|
||||
auto soleChildComponent = AceType::DynamicCast<SoleChildComponent>(GetMainComponent());
|
||||
auto menuComponent = AceType::DynamicCast<MenuComponent>(GetMainComponent());
|
||||
return ((type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0)||
|
||||
return ((type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0) ||
|
||||
!(componentGroup || multiComposedComponent || soleChildComponent || menuComponent));
|
||||
}
|
||||
|
||||
@ -523,7 +523,7 @@ void ViewStackProcessor::PopContainer()
|
||||
}
|
||||
|
||||
while ((!componentGroup && !multiComposedComponent && !soleChildComponent) ||
|
||||
(type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0)) {
|
||||
(type && strcmp(type, AceType::TypeName<TextSpanComponent>()) == 0)) {
|
||||
if (componentsStack_.size() <= 1) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user