| | |
| | | import safeluck.drive.evaluation.bean.SignalConfigRemote; |
| | | import safeluck.drive.evaluation.cEventCenter.CEventCenter; |
| | | import safeluck.drive.evaluation.cEventCenter.ICEventListener; |
| | | import safeluck.drive.evaluation.customview.MyDialog; |
| | | import safeluck.drive.evaluation.fragment.HomeFragment; |
| | | |
| | | import com.anyun.exam.lib.AYSdk; |
| | |
| | | |
| | | } |
| | | }; |
| | | private boolean hasSendInitData; |
| | | private List<SignalConfigRemote> signalConfiglist = new ArrayList<>(); |
| | | private int permissionCount = 0; |
| | | @Override |
| | |
| | | ExamPlatformData.getInstance().getExamplatformStatus() |
| | | ))); |
| | | tv_sat_num.setText(String.valueOf(appStatus.getSat_num()).length()==1?"0"+appStatus.getSat_num():String.valueOf(appStatus.getSat_num())); |
| | | tv_qf.setText(getResources().getStringArray(R.array.qf_status)[appStatus.getQf()]); |
| | | tv_qf.setText(getResources().getStringArray(R.array.qf_status)[appStatus.getQf()<5?appStatus.getQf():0]); |
| | | } |
| | | } |
| | | }); |
| | |
| | | |
| | | authMapViewmodel = ViewModelProviders.of(this).get(AuthMapViewmodel.class); |
| | | authMapViewmodel.getAuthValue().observe(this, new Observer<Integer>() { |
| | | |
| | | |
| | | @Override |
| | | public void onChanged(Integer integer) { |
| | | Log.i(TAG,"AuthMapViewmodel auth="+integer.intValue()); |
| | |
| | | String sn = ExamPlatformData.getInstance().getMcuSN(); |
| | | if (!TextUtils.isEmpty(sn)){ |
| | | |
| | | MyLog.i(TAG,"权限允许,蓝牙已连接,获得到的sn="+sn); |
| | | MyLog.i("权限允许,蓝牙已连接,获得到的sn="+sn+" sendInitData"); |
| | | hasSendInitData = true; |
| | | AbsInitialData.getInstance().sendInitialData(); |
| | | }else{ |
| | | MyLog.i(TAG,"权限允许,蓝牙已连接,获得到的sn=null,不能发送初始数据"); |
| | | hasSendInitData= false; |
| | | } |
| | | |
| | | } |
| | |
| | | mRTKConfig = rtkConfig; |
| | | |
| | | synchronized (MainActivity.this){ |
| | | if (ExamPlatformData.getInstance().isCanWriteSD()){ |
| | | AbsInitialData.getInstance().resethasSendInitData(); |
| | | AbsInitialData.getInstance().sendInitialData(); |
| | | MyLog.i("rtkConfig 更新sn后发送初始数据"); |
| | | } |
| | | // if (onlySendOnceRTKConfig){ |
| | | // MyLog.i(TAG,"进入 synchronized (MainActivity.this)"); |
| | | // onlySendOnceRTKConfig = false; |