endian11
2020-09-18 aeaf84fc9180eaebd69db8fb582e783ba3d2af78
加入发送路线采集命令
3个文件已修改
18 ■■■■■ 已修改文件
app/src/main/java/safeluck/drive/evaluation/app.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/safeluck/drive/evaluation/routecollect/RouteCollectController.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/src/main/java/safeluck/drive/evaluation/app.java
@@ -150,7 +150,7 @@
        }else{
//            MyLog.d(TAG,strConent );
            MyLog.d(TAG,strConent );
            lastStr = strConent;
        }
        switch (cmd) {
app/src/main/java/safeluck/drive/evaluation/fragment/TrainFragment.java
@@ -708,10 +708,11 @@
                                                break;
                                            }
                                        }
                                      ;
                                        Toast.makeText(_mActivity, "线路采集", Toast.LENGTH_SHORT).show();
                                        ExamPlatformData.getInstance().setTrainingMode(ExamPlatformData.ROUTE_MODE);
                                        exam_type = 5;
                                        sendExamJson(1,exam_type);
                                        examStatusViewModel.updateStartExam(exam_type);
                                        items.setVisibility(View.GONE);
                                        items_score.setVisibility(View.GONE);
@@ -762,10 +763,9 @@
            case R.id.view_map:
//                String url = getArcGisUrl(ExamPlatformData.getInstance().getExamType());
//                Log.i(TAG,"map head lulao gps url="+url);
//                startArcGisMapFragment(url);
//                StatusDialog.with(_mActivity).setCancelable(true).setPrompt("加载中,请稍后...").setType(StatusDialog.Type.PROGRESS).show();
                String url = getArcGisUrl(ExamPlatformData.getInstance().getExamType());
                Log.i(TAG,"map head lulao gps url="+url);
                startArcGisMapFragment(url);
                break;
@@ -912,6 +912,7 @@
        examStatusViewModel.updateStartExam(exam_type);
        ExamPlatformData.getInstance().getTTS().speak("开始训练");
        sendMessage();
    }
    private void sendMessage() {
app/src/main/java/safeluck/drive/evaluation/routecollect/RouteCollectController.java
@@ -1,5 +1,7 @@
package safeluck.drive.evaluation.routecollect;
import com.anyun.exam.lib.AYSdk;
import safeluck.drive.evaluation.fragment.TrainFragment;
import safeluck.drive.evaluation.routecollect.bean.RoadCrossInfo;
import safeluck.drive.evaluation.routecollect.bean.RoadInfo;
@@ -24,6 +26,7 @@
        this.iCollectView = collectView;
        routeModel = new RouteModel();
    }
    public void startCollect() {
        if (iCollectView != null){
@@ -53,6 +56,8 @@
    }
    @Override
    public void roadCrossInfo(RoadCrossInfo roadCrossInfo) {