lizhanwei
2020-04-29 33f9876c332676b55f83a2db2cc606e1a0a3c5b9
app/src/main/java/safeluck/drive/evaluation/fragment/HomeFragment.java
@@ -1,11 +1,9 @@
package safeluck.drive.evaluation.fragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@@ -15,11 +13,8 @@
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 me.yokeyword.fragmentation.ISupportFragment;
import me.yokeyword.fragmentation.SupportFragment;
@@ -27,7 +22,7 @@
import safeluck.drive.evaluation.MainActivity;
import safeluck.drive.evaluation.R;
import safeluck.drive.evaluation.bean.ExamPlatformData;
import safeluck.drive.evaluation.customview.LoadProgressDialog;
import safeluck.drive.evaluation.customview.MyDialog;
/**
@@ -113,16 +108,23 @@
                break;
            case R.id.exit_sys:
                //退出系统
                AlertDialog.Builder builder = new AlertDialog.Builder(_mActivity);
                builder.setMessage("您将退出系统,请确认数据已保存").setPositiveButton("确定", new DialogInterface.OnClickListener() {
                MyDialog myDialog = MyDialog.Companion.newInstance("您将退出系统,请确认数据已保存");
                myDialog.setOnClick(new MyDialog.MyOnClickListener() {
                    @Override
                    public void onClick(DialogInterface dialog, int which) {
                    public void onSure() {
                        _mActivity.finish();
                    }
                }).setNegativeButton("取消", (DialogInterface dialog, int which)-> {
                        dialog.dismiss();
                }).show();
                    @Override
                    public void onCancle() {
                    }
                });
                myDialog.show(getFragmentManager(),"mydialog");
                break;
            case R.id.system_setting: