Browse Source

修改开启机台bug

ChengJH 2 years ago
parent
commit
c064ab19f7

+ 6 - 1
app/src/main/java/com/uas/yitao_productionline/fragment/SCSMTIndexFragment.java

@@ -509,7 +509,12 @@ public class SCSMTIndexFragment extends BaseFragment implements AdapterView.OnIt
                     if (exceptionCode == 3001) {
                         new AlertDialog.Builder(mActivity).setTitle("提示")
                                 .setMessage(errorMsg.exceptionInfo + ",是否强制启动?")
-                                .setPositiveButton(R.string.confirm, null).setNegativeButton(R.string.cancel, null).create().show();
+                                .setPositiveButton(R.string.confirm, new DialogInterface.OnClickListener() {
+                                    @Override
+                                    public void onClick(DialogInterface dialog, int which) {
+                                        startMachine(true);
+                                    }
+                                }).setNegativeButton(R.string.cancel, null).create().show();
                     } else {
                         CommonUtil.showErrorToast(volleyError, true);
                     }

+ 2 - 2
build.gradle

@@ -50,8 +50,8 @@ ext {
             targetSdkVersion : 28,
             compileSdkVersion: 28,
             buildToolsVersion: "28.0.3",
-            versionCode      : 11,
-            versionName      : "v1.1"
+            versionCode      : 12,
+            versionName      : "v1.2"
     ]
 
     depsVersion = [