删除重复的container_的Add
authorCaisking <3449750381@qq.com>
Mon, 12 Aug 2024 10:08:27 +0000 (18:08 +0800)
committerCaisking <3449750381@qq.com>
Mon, 12 Aug 2024 10:08:27 +0000 (18:08 +0800)
code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodDetectionView.cpp
code/sdk/application/wearable/fd230app/nativeui/bloodoxygen/src/BloodResultView.cpp
code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckAbnormalView.cpp
code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidView.cpp
code/sdk/application/wearable/fd230app/nativeui/heartrate/src/HeartDetectionView.cpp
code/sdk/application/wearable/fd230app/nativeui/heartrate/src/HeartResultView.cpp
code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingEnddataView.cpp
code/sdk/application/wearable/fd230app/nativeui/traing/src/TraingView.cpp

index 81baa1e..2330481 100644 (file)
@@ -141,7 +141,6 @@ namespace OHOS
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BloodDetectionView::InitBloodView fail");
         }
 
-        RootView::GetInstance()->Add(container_);
         SetContainerView(container_);
 
         container_->SetDraggable(true);
index 1cb3e4d..e59bdab 100644 (file)
@@ -198,7 +198,6 @@ namespace OHOS
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "BloodResultView::InitBloodView fail");
         }
 
-        RootView::GetInstance()->Add(container_);
         SetContainerView(container_);
 
         container_->SetDraggable(true);
index 1779e4d..09ab6f0 100644 (file)
@@ -169,7 +169,6 @@ namespace OHOS
             ui_api_vibrate_once_func();
         }
         
-        RootView::GetInstance()->Add(container_);
         SetContainerView(container_);
 
         container_->SetDraggable(true);
index 7c89fc5..78953d5 100644 (file)
@@ -221,7 +221,6 @@ namespace OHOS
             ui_api_vibrate_once_func();
         }
 
-        RootView::GetInstance()->Add(container_);
         SetContainerView(container_);
 
         container_->SetDraggable(true);
index e76c850..0e262c9 100644 (file)
@@ -141,7 +141,6 @@ namespace OHOS
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HeartDetectionView::InitHeartView fail");
         }
 
-        RootView::GetInstance()->Add(container_);
         SetContainerView(container_);
 
         container_->SetDraggable(true);
index 8558bc5..4584b65 100644 (file)
@@ -197,7 +197,6 @@ namespace OHOS
             WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "HeartResultView::InitHeartView fail");
         }
 
-        RootView::GetInstance()->Add(container_);
         SetContainerView(container_);
 
         container_->SetDraggable(true);
index cf767f9..f8962be 100644 (file)
@@ -410,7 +410,6 @@ namespace OHOS
         PreLoad();
         InitData(); // 刷新数据
 
-        RootView::GetInstance()->Add(container_);
         SetContainerView(container_);
 
         container_->SetDraggable(true);
index 8d8f941..9f2cbf0 100644 (file)
@@ -275,7 +275,6 @@ namespace OHOS
 \r
         GetView();\r
 \r
-        RootView::GetInstance()->Add(container_);\r
         SetContainerView(container_);\r
         // 增加按键监听\r
         SetKeyActListener();\r