Browse Source

upgrade:悬浮无核验结果页UI优化

xwh 4 weeks ago
parent
commit
7106fd6608

+ 3 - 3
app/src/main/java/com/hanghui/senic/baiduface/view/BaiduResultView.java

@@ -325,7 +325,7 @@ public class BaiduResultView  extends LinearLayout {
                 public void run() {
                     setVisibility(View.VISIBLE);
 
-                    setViewVisibility(fl_user_info,ConfigManager.isShowUserInfo());
+                    setViewVisibility(fl_user_info,ConfigManager.isShowResultPageUserInfo());
                     setViewVisibility(ivPhoto,ConfigManager.isSuccessShowPersenalInfoPhoto);
                     setViewVisibility(tv_name,ConfigManager.isSuccessShowPersenalInfoName);
                     setViewVisibility(tv_card,ConfigManager.isSuccessShowPersenalInfoIDCard);
@@ -357,7 +357,7 @@ public class BaiduResultView  extends LinearLayout {
 
     private void setViewVisibility(View view,boolean isVisibility){
         if(view!=null){
-            view.setVisibility(isVisibility?VISIBLE:INVISIBLE);
+            view.setVisibility(isVisibility?VISIBLE:GONE);
         }
     }
 
@@ -889,7 +889,7 @@ public class BaiduResultView  extends LinearLayout {
                 @Override
                 public void run() {
                     setVisibility(View.VISIBLE);
-                    setViewVisibility(fl_user_info,ConfigManager.isShowUserInfo());
+                    setViewVisibility(fl_user_info,ConfigManager.isShowResultPageUserInfo());
                     setViewVisibility(ivPhoto,ConfigManager.isSuccessShowPersenalInfoPhoto);
                     setViewVisibility(tv_name,ConfigManager.isSuccessShowPersenalInfoName);
                     setViewVisibility(tv_card,ConfigManager.isSuccessShowPersenalInfoIDCard);

+ 9 - 1
app/src/main/java/com/hanghui/senic/service/usbserialdemo/utile/ConfigManager.java

@@ -1616,7 +1616,15 @@ public class ConfigManager {
 
     }
 
-    public static boolean isShowUserInfo(){
+
+    /**
+     *
+     * @author xwh
+     * Time 2024/12/27
+     * Description: 是否显示刷脸结果页用户信息
+     *
+    **/
+    public static boolean isShowResultPageUserInfo(){
         return isSuccessShowPersenalInfoPhoto ||  isSuccessShowPersenalInfoName
                 ||isSuccessShowPersenalInfoIDCard || isSuccessShowPersenalInfoPhone;
     }