| | |
| | | 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.CommonSetting; |
| | | import safeluck.drive.evaluation.fragment.rulefragments.cview.TextEditText; |
| | |
| | | public class FragmentSetting2 extends SupportFragment { |
| | | private static final String ARG_NUMBER = "arg_number"; |
| | | private static final String TAG = FragmentSetting2.class.getSimpleName(); |
| | | |
| | | private Gson gson = new Gson(); |
| | | private CommonSetting mCommonSetting; |
| | | private CommonSettingViewModel commonSettingViewModel; |
| | | |
| | |
| | | |
| | | |
| | | commonSettingViewModel.saveCommonSetting(mCommonSetting); |
| | | AYSdk.getInstance().sendCmd(Constant.ID_judge_args,gson.toJson(mCommonSetting)); |
| | | Toast.makeText(_mActivity, "通用设置成功", Toast.LENGTH_SHORT).show(); |
| | | } |
| | | } |