| | |
| | | import com.hdl.photovoltaic.other.HdlPushLogic; |
| | | import com.hdl.photovoltaic.other.HdlResidenceLogic; |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | | import com.hdl.photovoltaic.ui.BPowerStationActivity; |
| | | import com.hdl.photovoltaic.ui.CPowerStationActivity; |
| | | import com.hdl.photovoltaic.ui.StartActivity; |
| | | import com.hdl.photovoltaic.ui.adapter.LanguageAdapter; |
| | | import com.hdl.photovoltaic.uni.HDLUniMPSDKManager; |
| | |
| | | @Override |
| | | public void run() { |
| | | hideLoading(); |
| | | UserConfigManage.getInstance().setTouristModeJumpLogic(false); |
| | | UserConfigManage.getInstance().setCurrentAppLanguage(itemData.getLanguage()); |
| | | UserConfigManage.getInstance().Save(); |
| | | //配置接口请求语言 |
| | | HDLLinkPMSdk.setLanguage(UserConfigManage.getInstance().getCurrentAppLanguage()); |
| | | |
| | | AppManagerUtils.getAppManager().finishAllActivity(); |
| | | // if (UserConfigManage.getInstance().isTourist_mode()) { |
| | | // Intent intent = new Intent(); |
| | | // intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); |
| | | // if (UserConfigManage.getInstance().isBAccount()) { |
| | | // intent.setClass(HDLApp.getInstance(), BPowerStationActivity.class); |
| | | // } else { |
| | | // intent.setClass(HDLApp.getInstance(), CPowerStationActivity.class); |
| | | // } |
| | | // startActivity(intent); |
| | | // } else { |
| | | Intent intent = new Intent(); |
| | | intent.setClass(HDLApp.getInstance(), StartActivity.class); |
| | | startActivity(intent); |
| | | // } |
| | | HdlPushLogic.getInstance().pushAdd(new CloudCallBeak<String>() { |
| | | @Override |
| | | public void onSuccess(String pushId) { |