| | |
| | | import androidx.annotation.NonNull; |
| | | import androidx.annotation.Nullable; |
| | | import androidx.appcompat.app.AlertDialog; |
| | | import androidx.fragment.app.DialogFragment; |
| | | |
| | | |
| | | import com.anyun.exam.lib.AYSdk; |
| | |
| | | import safeluck.drive.evaluation.BuildConfig; |
| | | import safeluck.drive.evaluation.R; |
| | | import safeluck.drive.evaluation.bean.ExamPlatformData; |
| | | import safeluck.drive.evaluation.customview.LoadProgressDialog; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | break; |
| | | case R.id.network_train: |
| | | if (ExamPlatformData.getInstance().getTrainingMode()==ExamPlatformData.TRAINING_MODE){ |
| | |
| | | public void onClick(DialogInterface dialog, int which) { |
| | | _mActivity.finish(); |
| | | } |
| | | }).setNegativeButton("取消", new DialogInterface.OnClickListener() { |
| | | @Override |
| | | public void onClick(DialogInterface dialog, int which) { |
| | | }).setNegativeButton("取消", (DialogInterface dialog, int which)-> { |
| | | dialog.dismiss(); |
| | | } |
| | | }).show(); |
| | | // TakePhotoFragment takePhotoFragment = findFragment(TakePhotoFragment.class); |
| | | // if (takePhotoFragment == null){ |
| | | // takePhotoFragment = TakePhotoFragment.newInstance(); |
| | | // } |
| | | // start(takePhotoFragment); |
| | | |
| | | break; |
| | | case R.id.system_setting: |
| | | //打开输入密码界面 |
| | | // PasswordFragment passwordFragment = findFragment(PasswordFragment.class); |
| | | // if (passwordFragment == null) { |
| | | // passwordFragment = (PasswordFragment) PasswordFragment.newInstance(); |
| | | // start(passwordFragment); |
| | | // } else { |
| | | // start(passwordFragment); |
| | | // } |
| | | BaseSettingFragment sysSetingFragment = findFragment(BaseSettingFragment.class); |
| | | if (sysSetingFragment == null) { |
| | | sysSetingFragment = (BaseSettingFragment) BaseSettingFragment.newInstance(); |