From 0abb3d251383bcdf22db67e2b26431b7a7b74148 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 11 八月 2017 14:30:34 +0800
Subject: [PATCH] bug fix
---
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java
index b906cad..cfa3bd3 100644
--- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java
+++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/fragment/AttenderRegisterFragment.java
@@ -9,8 +9,11 @@
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v4.app.Fragment;
+import android.view.MotionEvent;
import android.view.View;
+import android.view.ViewGroup;
import android.view.WindowManager;
+import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
@@ -38,6 +41,7 @@
import cn.com.basic.face.util.IdCard;
import cn.com.basic.face.thread.IdCardReaderThread;
+import cn.com.basic.face.util.KeyboardUtil;
import cn.com.basic.face.util.NativeImg;
import cn.com.basic.face.util.OkClickedListener;
@@ -247,7 +251,7 @@
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
offlineAttenderRegisterItem.setCreateTime(sdf.format(new Date()));
- String rawSurveillancePhotoPath = UUID.randomUUID().toString()+".bmp";
+ String rawSurveillancePhotoPath = UUID.randomUUID().toString()+"";
byte[] rawSurveillancePhotoBytes = new byte[]{};
if (surveillanceQueryItem_selectPhoto != null) {
@@ -265,7 +269,7 @@
FileUtil.writeToFile(rawSurveillancePhotoPath, rawSurveillancePhotoBytes);
offlineAttenderRegisterItem.setRawSurveillancePhotoPath(rawSurveillancePhotoPath);
- String surveillancePhotoPath = UUID.randomUUID().toString()+".bmp";
+ String surveillancePhotoPath = UUID.randomUUID().toString()+"";
byte[] surveillancePhotoBytes = new byte[]{};
if (fragment_attender_register_surveillance_photo_img != null) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -275,7 +279,7 @@
FileUtil.writeToFile(surveillancePhotoPath, surveillancePhotoBytes);
offlineAttenderRegisterItem.setSurveillancePhoto(surveillancePhotoPath);
- String uploadCustomPhotoPath = UUID.randomUUID().toString()+".bmp";
+ String uploadCustomPhotoPath = UUID.randomUUID().toString()+"";
byte[] uploadCustomPhotoBytes = new byte[]{};
if (fragment_attender_register_upload_custom_photo_img != null) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -285,7 +289,7 @@
FileUtil.writeToFile(uploadCustomPhotoPath, uploadCustomPhotoBytes);
offlineAttenderRegisterItem.setUploadCustomPhoto(uploadCustomPhotoPath);
- String idCardPhotoPath = UUID.randomUUID().toString()+".bmp";
+ String idCardPhotoPath = UUID.randomUUID().toString()+"";
byte[] idCardPhotoBytes = new byte[]{};
if (fragment_attender_register_id_card_photo_img != null) {
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -534,6 +538,7 @@
idCardReaderThread = new IdCardReaderThread();
idCardReaderThread.start();
}
+ setupUI(getView());
}
public void fillFormWithIdCard(IdCard idCard) {
@@ -588,4 +593,5 @@
}, fragment_attender_register_department.getValue());
}
+
}
--
Gitblit v1.8.0