解决电话界面无拨号信息时的视图添加报错 1507/3
authorluozheng <1732036298@qq.com>
Tue, 10 Dec 2024 02:58:00 +0000 (10:58 +0800)
committerluozheng <1732036298@qq.com>
Tue, 10 Dec 2024 02:58:00 +0000 (10:58 +0800)
code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp

index 0c0c780..6bd9609 100644 (file)
@@ -2,7 +2,7 @@
  * @Author: luozheng 1732036298@qq.com
  * @Date: 2024-04-28 10:09:51
  * @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-04-29 10:08:42
+ * @LastEditTime: 2024-12-10 10:49:42
  * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp
  */
 #include "MainPhoneView.h"
@@ -749,6 +749,7 @@ namespace OHOS
         View<MainPhonePresenter>::OnSetUpView();
         container_=MainPhoneViewScrollView;
         RootView::GetInstance()->Add(container_);
+        if(delete_log_view)
         RootView::GetInstance()->Add(delete_log_view);
         Draw();
     }