电话补 892/2
authorhcj <1224667075@qq.com>
Fri, 6 Sep 2024 07:50:04 +0000 (15:50 +0800)
committerhcj <1224667075@qq.com>
Fri, 6 Sep 2024 07:50:04 +0000 (15:50 +0800)
code/sdk/application/wearable/nativeabilityfwk/include/Ability.h

index 3a5c635..84b6c33 100755 (executable)
@@ -117,9 +117,9 @@ public:
     bool BackCountSlice(int count,const TransitionType transitionId = TransitionType::TRANSITION_INVALID,
         const uint16_t priority = gSliceDefaultPriority) { 
         //如果指定的后退级数 count 为 0 ,直接返回 false 。
-        if(count == 0) {
-            return false;
-        }
+        // if(count == 0) {
+        //     return false;
+        // }
         while(!backStack_.empty() && count != 0) //当 count 不为 0 且 backStack_ 栈不为空时,弹出栈顶元素 count 次。
         {
             backStack_.pop();