电话bug综合修复(补) 996/4 996/head
authorhcj <1224667075@qq.com>
Sat, 21 Sep 2024 02:30:28 +0000 (10:30 +0800)
committerhcj <1224667075@qq.com>
Sat, 21 Sep 2024 02:30:28 +0000 (10:30 +0800)
code/sdk/application/wearable/fd230app/nativeui/makephone/src/MainCallingView.cpp

index 0ac5cdf..feb2ef5 100644 (file)
@@ -33,6 +33,7 @@ MainCallingView::~MainCallingView()
     delete waitingView;
     waitingView = nullptr;
 
+    
 
     g_pMainView = nullptr;
 }
@@ -135,6 +136,7 @@ void MainCallingView::OnStart()
     if (InitPointerValue() == false) {
         return;
     }
+    
     RootView::OnKeyActListener *keyactListener = (RootView::OnKeyActListener *)OHOS::MainCallingPresenter::GetInstance();
     RootView::GetInstance()->SetOnKeyActListener(keyactListener);
 
@@ -185,6 +187,8 @@ void MainCallingView::OnStop()
     WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MainCallingView::~OnStop");
     View<MainCallingPresenter>::OnStop();
     RootView::GetInstance()->RemoveAll();
+    RootView::GetInstance()->ClearOnKeyActListener();
+
     return;
 }
 }
\ No newline at end of file