| | |
| | | import androidx.lifecycle.Observer; |
| | | import androidx.lifecycle.ViewModelProviders; |
| | | |
| | | import com.anyun.exam.lib.AYSdk; |
| | | import com.google.gson.Gson; |
| | | |
| | | import me.yokeyword.fragmentation.SupportFragment; |
| | | import safeluck.drive.evaluation.Constant; |
| | | import safeluck.drive.evaluation.R; |
| | | import safeluck.drive.evaluation.bean.AreaSetting; |
| | | import safeluck.drive.evaluation.fragment.rulefragments.cview.TextEditText; |
| | |
| | | public class FragmentSetting1 extends SupportFragment implements View.OnClickListener { |
| | | private static final String ARG_NUMBER = "arg_number"; |
| | | private static final String TAG = FragmentSetting1.class.getSimpleName(); |
| | | |
| | | private Gson gson = new Gson(); |
| | | AreaSetting areaSetting; |
| | | AreaSettingViewModel areaSettingViewModel; |
| | | |
| | |
| | | |
| | | if (canWirteJsonToFile){ |
| | | areaSettingViewModel.saveAreaSetting(areaSetting); |
| | | AYSdk.getInstance().sendCmd(Constant.ID_judge_args,gson.toJson(areaSetting)); |
| | | } |
| | | |
| | | } |