From 2cfebd762138bb6948aa1eeda974f64267ba8b29 Mon Sep 17 00:00:00 2001 From: Lby Date: Fri, 30 Aug 2024 16:02:51 +0800 Subject: [PATCH] =?UTF-8?q?view=5Fstack=5Fprocessor.cpp=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lby --- .../bridge/declarative_frontend/view_stack_processor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }