| | |
| | | if (examStatus.getResult() ==1){ |
| | | MyLog.i(String.format("已经播放过%s合格",ss)); |
| | | }else{ |
| | | ExamPlatformData.getInstance().getTTS().speak(String.format("%s合格",ss)); |
| | | // ExamPlatformData.getInstance().getTTS().speak(String.format("%s合格",ss)); |
| | | examStatusViewModel.updateItemExamResult(1,examStatus.getMap_id()); |
| | | } |
| | | |
| | |
| | | if (examStatus.get(0).getStartExam() != Constant.NONE_BEEN_START_EXAM){ |
| | | btn_start_exam.setEnabled(false); |
| | | tv_stop.setEnabled(true); |
| | | iv_head.getDrawable().setLevel(1); |
| | | }else{ |
| | | btn_start_exam.setEnabled(true); |
| | | tv_stop.setEnabled(false); |
| | | iv_head.getDrawable().setLevel(0); |
| | | } |
| | | exam_type = examStatus.get(0).getStartExam(); |
| | | } |
| | |
| | | public void changKao() { |
| | | |
| | | exam_type = 2; |
| | | iv_head.getDrawable().setLevel(1); |
| | | ExamPlatformData.getInstance().setTrainingMode(ExamPlatformData.TRAINING_MODE); |
| | | ExamPlatformData.getInstance().setExamType(exam_type); |
| | | examStatusViewModel.updateStartExam(exam_type); |
| | |
| | | failedProjViewModel.deleteAll(); |
| | | |
| | | tv_total_score.setText(String.valueOf(currTotalScore)); |
| | | iv_head.getDrawable().setLevel(0); |
| | | |
| | | |
| | | ExamPlatformData.getInstance().getTTS().speak("结束训练"); |
| | | examStatusViewModel.updateStartExam(Constant.NONE_BEEN_START_EXAM); |