فهرست منبع

bugfix:二维码释放修复。
结果页显示姓名、身份证等等字段在全禁用时问题。

xwh 2 هفته پیش
والد
کامیت
2fa41d334c

+ 3 - 1
app/src/main/java/com/hanghui/senic/controller/QRCodeController.java

@@ -209,7 +209,6 @@ public class QRCodeController extends BaseController {
 
     @Override
     public void destroy() {
-        instance = null ;
         try {
             CommonUtil.getCurrentActivity().unregisterReceiver(QRCodeController.getInstance().mUsbReceiver);
             CommonUtil.getCurrentActivity().unbindService(QRCodeController.getInstance().usbConnection);
@@ -217,7 +216,10 @@ public class QRCodeController extends BaseController {
             CommonUtil.getCurrentActivity().stopService(intent);
         } catch (Exception e) {
             e.printStackTrace();
+        }finally {
+            instance = null ;
         }
+
     }
 
     public void requestOverlayPersmission() {

+ 1 - 0
app/src/main/java/com/hanghui/senic/controller/SerialController.java

@@ -269,6 +269,7 @@ public class SerialController extends BaseController {
             doorSerialPortAddressSerialPort.close();
             doorSerialPortAddressSerialPort = null;
         }
+        instance = null;
     }
 
     //----------------------------------------------------串口发送

+ 4 - 0
app/src/main/java/com/hanghui/senic/service/usbserialdemo/utile/ConfigManager.java

@@ -1580,6 +1580,10 @@ public class ConfigManager {
     public static void isSuccessShowPersenalInfo(){
         if (ConfigManager.getAuthenticationBeanListBean().getSuccessShowPersonalInfoList() ==null ||
                 ConfigManager.getAuthenticationBeanListBean().getSuccessShowPersonalInfoList().size() == 0){
+            isSuccessShowPersenalInfoName = false;
+            isSuccessShowPersenalInfoPhone = false;
+            isSuccessShowPersenalInfoPhoto = false;
+            isSuccessShowPersenalInfoIDCard = false;
             return;
         }
         for (int i = 0; i < ConfigManager.getAuthenticationBeanListBean().getSuccessShowPersonalInfoList().size(); i++) {