|
@@ -12,7 +12,6 @@ import android.graphics.drawable.Drawable;
|
|
|
import android.inputmethodservice.Keyboard;
|
|
|
import android.text.Editable;
|
|
|
import android.text.TextWatcher;
|
|
|
-import android.util.Log;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewTreeObserver;
|
|
|
import android.widget.ImageView;
|
|
@@ -31,7 +30,6 @@ import com.bumptech.glide.request.RequestOptions;
|
|
|
import com.bumptech.glide.request.target.SimpleTarget;
|
|
|
import com.bumptech.glide.request.transition.Transition;
|
|
|
import com.example.lib.QRCodeUtil.GenerateQRCodeUtil;
|
|
|
-import com.google.gson.Gson;
|
|
|
import com.hanghui.senic.MyAppliction;
|
|
|
import com.hanghui.senic.R;
|
|
|
import com.hanghui.senic.adapter.OutcomeAdapter;
|
|
@@ -40,7 +38,6 @@ import com.hanghui.senic.adapter.OutcomeAdapter3;
|
|
|
import com.hanghui.senic.adapter.OutcomeAdapter4;
|
|
|
import com.hanghui.senic.adapter.StatusPendingAdapter;
|
|
|
import com.hanghui.senic.baiduface.BaiduFaceController;
|
|
|
-import com.hanghui.senic.baiduface.BaiduFacePreviewActivity;
|
|
|
import com.hanghui.senic.bean.CChoiseListBean;
|
|
|
import com.hanghui.senic.bean.CheckNumBean;
|
|
|
import com.hanghui.senic.bean.FederatedPlatformsRequestBean;
|
|
@@ -150,6 +147,7 @@ public class BaiDuFaceView {
|
|
|
TextView loadingLocally_ThrLabel;
|
|
|
ImageView loadingLocally_ThrValue;
|
|
|
RelativeLayout outcomeActivity_Outcome;
|
|
|
+ RelativeLayout outcomeActivity_FloatingButton;
|
|
|
//大图结果页
|
|
|
RelativeLayout outcomeActivity_OutcomeMAXPicture;
|
|
|
ImageView outcomeActivity_OutcomeImageMAXPicture;
|
|
@@ -404,6 +402,9 @@ public class BaiDuFaceView {
|
|
|
loadingLocally_ThrLabel = view.findViewById(R.id.LoadingLocally_ThrLabel);
|
|
|
loadingLocally_ThrValue = view.findViewById(R.id.LoadingLocally_ThrValue);
|
|
|
outcomeActivity_Outcome = view.findViewById(R.id.OutcomeActivity_Outcome);
|
|
|
+ if (ConfigManager.isFloatingPages()) {
|
|
|
+ outcomeActivity_FloatingButton = view.findViewById(R.id.outcomeActivity_FloatingButton);
|
|
|
+ }
|
|
|
//大图成功结果页
|
|
|
outcomeActivity_OutcomeImageMAXPicture = view.findViewById(R.id.OutcomeActivity_OutcomeImageMAXPicture);
|
|
|
outcomeActivity_OutcomeTextViewMAXPicture = view.findViewById(R.id.OutcomeActivity_OutcomeTextViewMAXPicture);
|
|
@@ -2305,6 +2306,11 @@ public class BaiDuFaceView {
|
|
|
outcomeActivity_PAGE_TYPE_CLOSING_PENDING_MULTIPLE.setVisibility(View.GONE);
|
|
|
loadingLocally_TopLinearLayout.setVisibility(View.VISIBLE);
|
|
|
loadingLocally_TopLinearLayoutImageRelativeLayout.setVisibility(View.VISIBLE);
|
|
|
+ if (ConfigManager.getAuthenticationBeanListBean().getSuccessShowPersonalInfoList() == null ){
|
|
|
+ outcomeActivity_FloatingButton.setVisibility(View.GONE);
|
|
|
+ }else {
|
|
|
+ outcomeActivity_FloatingButton.setVisibility(View.VISIBLE);
|
|
|
+ }
|
|
|
}
|
|
|
outcomeActivity_PAGE_TYPE_CLOSING_PENDING_MULTIPLE.setVisibility(View.GONE);
|
|
|
String name = federatedPlatformsResponseBean.getData().getName();
|
|
@@ -2367,16 +2373,21 @@ public class BaiDuFaceView {
|
|
|
if (ConfigManager.isFloatingPages()) {
|
|
|
// outcomeActivity_LocalError_idNumberLinear2.setVisibility(View.GONE);
|
|
|
RequestOptions options = new RequestOptions().bitmapTransform(new RoundedCorners(10));
|
|
|
- if (!StringIsNull.IsStringNull(ScenePhoto)) {
|
|
|
- ImageLoaderUtils.loadImage(ScenePhoto,outcomeActivity_OutcomeImage,options);
|
|
|
- } else if (!StringIsNull.IsStringNull(IDPhoto)) {
|
|
|
- ImageLoaderUtils.loadImage(IDPhoto,outcomeActivity_OutcomeImage,options);
|
|
|
- }else if (bitmap != null) {
|
|
|
- Drawable drawable=new BitmapDrawable(outcomeActivity_OutcomeImage.getResources(),bitmap);
|
|
|
- options.placeholder(drawable).diskCacheStrategy(DiskCacheStrategy.NONE).skipMemoryCache(true);
|
|
|
- ImageLoaderUtils.loadImage(bitmap,outcomeActivity_OutcomeImage,options);
|
|
|
- } else {
|
|
|
- ImageLoaderUtils.loadImage(R.mipmap.outcomeactivity_outcomeimagemax_picture,outcomeActivity_OutcomeImage);
|
|
|
+ if (ConfigManager.isSuccessShowPersenalInfoPhoto){
|
|
|
+ outcomeActivity_OutcomeImage.setVisibility(View.VISIBLE);
|
|
|
+ if (!StringIsNull.IsStringNull(ScenePhoto)) {
|
|
|
+ ImageLoaderUtils.loadImage(ScenePhoto,outcomeActivity_OutcomeImage,options);
|
|
|
+ } else if (!StringIsNull.IsStringNull(IDPhoto)) {
|
|
|
+ ImageLoaderUtils.loadImage(IDPhoto,outcomeActivity_OutcomeImage,options);
|
|
|
+ }else if (bitmap != null) {
|
|
|
+ Drawable drawable=new BitmapDrawable(outcomeActivity_OutcomeImage.getResources(),bitmap);
|
|
|
+ options.placeholder(drawable).diskCacheStrategy(DiskCacheStrategy.NONE).skipMemoryCache(true);
|
|
|
+ ImageLoaderUtils.loadImage(bitmap,outcomeActivity_OutcomeImage,options);
|
|
|
+ } else {
|
|
|
+ ImageLoaderUtils.loadImage(R.mipmap.outcomeactivity_outcomeimagemax_picture,outcomeActivity_OutcomeImage);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ outcomeActivity_OutcomeImage.setVisibility(View.GONE);
|
|
|
}
|
|
|
if (!StringIsNull.IsStringNull(federatedPlatformsResponseBean.getData().getALineThrValue())) {
|
|
|
ImageLoaderUtils.loadImage(federatedPlatformsResponseBean.getData().getALineThrValue(),loadingLocally_ThrValue,options);
|
|
@@ -2384,19 +2395,19 @@ public class BaiDuFaceView {
|
|
|
ImageLoaderUtils.loadImage(R.mipmap.blue_background_gradient,loadingLocally_TopLinearLayoutImage);
|
|
|
ImageLoaderUtils.loadImage(R.mipmap.mainactivity_aicon,loadingLocally_Image);
|
|
|
loadingLocally_TopLinearLayoutImageRelativeLayout.setVisibility(View.VISIBLE);
|
|
|
- if (!StringIsNull.IsStringNull(name)) {
|
|
|
+ if (!StringIsNull.IsStringNull(name) && ConfigManager.isSuccessShowPersenalInfoName) {
|
|
|
outcomeActivity_OutcomeName.setVisibility(View.VISIBLE);
|
|
|
outcomeActivity_OutcomeName.setText(name);
|
|
|
} else {
|
|
|
outcomeActivity_OutcomeName.setVisibility(View.GONE);
|
|
|
}
|
|
|
- if (!StringIsNull.IsStringNull(idCard)) {
|
|
|
+ if (!StringIsNull.IsStringNull(idCard) && ConfigManager.isSuccessShowPersenalInfoIDCard) {
|
|
|
outcomeActivity_OutcomeSecond.setVisibility(View.VISIBLE);
|
|
|
outcomeActivity_OutcomeSecond.setText(idCard);
|
|
|
} else {
|
|
|
outcomeActivity_OutcomeSecond.setVisibility(View.GONE);
|
|
|
}
|
|
|
- if (!StringIsNull.IsStringNull(phone)) {
|
|
|
+ if (!StringIsNull.IsStringNull(phone) && ConfigManager.isSuccessShowPersenalInfoPhone) {
|
|
|
OutcomeActivity_Phone.setVisibility(View.VISIBLE);
|
|
|
OutcomeActivity_Phone.setText(phone);
|
|
|
} else {
|