| | |
| | | import org.json.JSONObject; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.EventListener; |
| | | import java.util.List; |
| | | |
| | | import me.yokeyword.fragmentation.SupportFragment; |
| | | import safeluck.drive.evaluation.Constant; |
| | | import safeluck.drive.evaluation.DB.Student; |
| | | import safeluck.drive.evaluation.DB.WokViewModel; |
| | | import safeluck.drive.evaluation.DB.appstatusdb.AppStatus; |
| | | import safeluck.drive.evaluation.DB.appstatusdb.AppStatusViewModel; |
| | | import safeluck.drive.evaluation.DB.exam_status.ExamStatus; |
| | |
| | | examStatusList.clear(); |
| | | examStatusList.addAll(examStatus); |
| | | mHandler.obtainMessage(ADD_DATA).sendToTarget(); |
| | | if (examStatus.get(0).getStartExam() == Constant.HAS_BEEN_START_EXAM){ |
| | | if (examStatus.get(0).getStartExam() == Constant.NONE_BEEN_START_EXAM){ |
| | | btn_train.setEnabled(false); |
| | | tv_stop.setEnabled(true); |
| | | }else{ |
| | |
| | | } |
| | | break; |
| | | case R.id.btn_start: |
| | | examStatusViewModel.updateStartExam(Constant.HAS_BEEN_START_EXAM); |
| | | examStatusViewModel.updateStartExam(Constant.NONE_BEEN_START_EXAM); |
| | | try { |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject.put("exam", 1); |