mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
!41980 view_stack_processor.cpp代码风格修复
Merge pull request !41980 from Lby/lby_view_stack_processor
This commit is contained in:
commit
30eb7d143d
@ -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