diff --git a/frameworks/bridge/declarative_frontend/view_stack_processor.cpp b/frameworks/bridge/declarative_frontend/view_stack_processor.cpp index 9b792f6df71..dc62c57fd68 100644 --- a/frameworks/bridge/declarative_frontend/view_stack_processor.cpp +++ b/frameworks/bridge/declarative_frontend/view_stack_processor.cpp @@ -454,7 +454,7 @@ bool ViewStackProcessor::ShouldPopImmediately() auto multiComposedComponent = AceType::DynamicCast(GetMainComponent()); auto soleChildComponent = AceType::DynamicCast(GetMainComponent()); auto menuComponent = AceType::DynamicCast(GetMainComponent()); - return ((type && strcmp(type, AceType::TypeName()) == 0)|| + return ((type && strcmp(type, AceType::TypeName()) == 0) || !(componentGroup || multiComposedComponent || soleChildComponent || menuComponent)); } @@ -523,7 +523,7 @@ void ViewStackProcessor::PopContainer() } while ((!componentGroup && !multiComposedComponent && !soleChildComponent) || - (type && strcmp(type, AceType::TypeName()) == 0)) { + (type && strcmp(type, AceType::TypeName()) == 0)) { if (componentsStack_.size() <= 1) { break; }