增加计算器
authorhcj <1224667075@qq.com>
Tue, 30 Jul 2024 12:08:12 +0000 (20:08 +0800)
committerhcj <1224667075@qq.com>
Tue, 30 Jul 2024 12:08:12 +0000 (20:08 +0800)
code/sdk/application/wearable/fd230app/nativelauncher/src/NativeLauncher.cpp

index d0d78e0..63ced64 100644 (file)
@@ -967,14 +967,14 @@ namespace OHOS
 
     void NativeLauncher::InitCalculatorSlice(void)
     {
-        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitPhoneRingSlice");
-        SliceProxy *phoneringview = new AbilitySliceProxy<CalculatorView, CalculatorPresenter>;
-        if (phoneringview == nullptr)
+        WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "NativeLauncher::InitCalculatorSlice");
+        SliceProxy *Calculatorview_ = new AbilitySliceProxy<CalculatorView, CalculatorPresenter>;
+        if (Calculatorview_ == nullptr)
         {
-            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "phoneringview");
+            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Calculator");
             return;
         }
-        NativeAbility::GetInstance().AddSliceProxy(VIEW_CALCULATOR, phoneringview);
+        NativeAbility::GetInstance().AddSliceProxy(VIEW_CALCULATOR, Calculatorview_);
     }
 
     /* ----------------------------------- 电话 ----------------------------------- */