mac
2024-03-26 07fb950b0f6c460e4cc60c4e262bc5992074790e
app/src/main/java/com/hdl/photovoltaic/ui/me/languageSelectionActivity.java
@@ -115,14 +115,15 @@
                //配置接口请求语言
                HDLLinkPMSdk.setLanguage(UserConfigManage.getInstance().getCurrentAppLanguage());
                dialog.dismiss();
                AppManagerUtils.getAppManager().finishAllActivity();
                if (!UserConfigManage.getInstance().isBAccount()) {
                    finish();
                    //因为C端主界面是uni写的,这里语言切换必须报uni关掉再重新启动,否则会收不到uni发过来的数据(接口为null)
                    if (null != HDLUniMPSDKManager.getInstance().getUniMP()) {
                        HDLUniMPSDKManager.getInstance().getUniMP().closeUniMP();
                    }
                    HDLUniMPSDKManager.getInstance().initDCUniMPSDK(HDLApp.getInstance());
                }
                AppManagerUtils.getAppManager().finishAllActivity();
                Intent intent = new Intent();
                intent.setClass(HDLApp.getInstance(), StartActivity.class);
                startActivity(intent);