语言选择修改弹窗
authorCaisking <Casiking@zhihuishixun.com>
Thu, 8 May 2025 03:56:47 +0000 (11:56 +0800)
committerCaisking <Casiking@zhihuishixun.com>
Thu, 8 May 2025 03:56:47 +0000 (11:56 +0800)
code/sdk/application/wearable/fd230/nativeapp/nativeui/languagecode/LanguageInit.cpp

index b8aa1e6..ff7ca3a 100644 (file)
@@ -192,14 +192,17 @@ namespace OHOS
             NativeAbility::GetInstance().SetDefaultSliceId(VIEW_MAIN);
             FontGlobalManager::GetInstance()->RegisterLanguageInfo(resFiles, MAX_LANGUAGE, 0);
         #else
+
         int thelanguage = ConfigModel::GetInstance()->GetLanguage();
+
+        //多国语言切换字体文件包
         if(is_load_languages(thelanguage))
         {
             GraphicStartUp::InitFontEngine(MEM_POOL_UI_FONT, MEM_POOL_UI_FONT_SIZE, OHOS::NEW_FONT_DIR,  get_language_font(thelanguage)); // 注册字体 
             set_current_global_font_name(get_language_font(thelanguage));
         }
-      
-
+        //需要蓝牙绑定状态设置
+        #ifdef SUPPORT_BLE_SERVICE
         if(ConfigModel::GetInstance()->GetisFirstTimeStart() == true)
         {
             /**
@@ -211,6 +214,7 @@ namespace OHOS
             NativeAbility::GetInstance().SetDefaultSliceId(VIEW_LANGUAGE_SWITCH);
         }
         else
+        #endif
         {
             NativeAbility::GetInstance().SetDefaultSliceId(VIEW_MAIN);
         }