Browse Source

解决访客登记打开身份证登记页面,关闭页面线程还在执行问题

ifengouy 2 years ago
parent
commit
7de10848f7

+ 1 - 0
app/src/main/java/com/sunwin/visitorapp/fragment/IdcardRegFragment.java

@@ -73,6 +73,7 @@ public class IdcardRegFragment extends BaseFragment implements IdCardReadCallbac
         super.onPause();
         LogUtil.e(TAG, "=======onPause = ");
         idCardReaderUtil.stopRead();
+        mFaceDetecterView.onPause();
         mFaceDetecterView.onDestroy();
     }
 

+ 1 - 1
app/src/main/java/com/sunwin/visitorapp/view/FaceDetecterView.java

@@ -111,7 +111,7 @@ public class FaceDetecterView extends RelativeLayout {
     }
 
     public void onPause() {
-
+        stopCamera();
     }
 
     public void onDestroy() {