关闭ChangeSlice中打印后退栈id 643/3
authorluozheng <1732036298@qq.com>
Sat, 3 Aug 2024 10:36:46 +0000 (18:36 +0800)
committerluozheng <1732036298@qq.com>
Sat, 3 Aug 2024 10:36:46 +0000 (18:36 +0800)
code/sdk/application/wearable/nativeabilityfwk/include/Ability.h
code/sdk/application/wearable/nativeabilityfwk/src/Ability.cpp

index 4a3b4f8..1dd83f5 100755 (executable)
@@ -149,15 +149,20 @@ public:
         }
     }
 
+    /*打印栈中元素*/
     /*打印栈中元素*/
     void showsStackSliceId()
     {
+        printf("\n%d\n",backStack_.size());
         std::stack<uint16_t> tempStack = backStack_;
+        printf("\n[");
         while(!tempStack.empty())
         {
-            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d,", tempStack.top());
+            printf("%d,",tempStack.top());
             tempStack.pop();
         }
+        printf("]\n");
+        printf("\n%d\n",backStack_.size());
     }
     /* -------------------------------------------------------------------------- */
 
index 6105091..6b187db 100755 (executable)
@@ -118,7 +118,7 @@ ListsNode<Ability::ProxyStruct>* Ability::Find(const uint16_t sliceId)
  */
 void Ability::ChangeSlice(const uint16_t targetSliceId, TransitionType type, const uint16_t priority)
 {
-    showsStackSliceId();
+    // showsStackSliceId();
     /*
         if (GetCurSliceId() == targetSliceId) {
         return;