|
@@ -324,7 +324,12 @@ public class BaiduResultView extends LinearLayout {
|
|
@Override
|
|
@Override
|
|
public void run() {
|
|
public void run() {
|
|
setVisibility(View.VISIBLE);
|
|
setVisibility(View.VISIBLE);
|
|
- fl_user_info.setVisibility(VISIBLE);
|
|
|
|
|
|
+
|
|
|
|
+ setViewVisibility(fl_user_info,ConfigManager.isShowUserInfo());
|
|
|
|
+ setViewVisibility(ivPhoto,ConfigManager.isSuccessShowPersenalInfoPhoto);
|
|
|
|
+ setViewVisibility(tv_name,ConfigManager.isSuccessShowPersenalInfoName);
|
|
|
|
+ setViewVisibility(tv_card,ConfigManager.isSuccessShowPersenalInfoIDCard);
|
|
|
|
+ setViewVisibility(tv_phone,ConfigManager.isSuccessShowPersenalInfoPhone);
|
|
String sucText= ConfigManager.getAuthenticationBeanListBean().getSucText();
|
|
String sucText= ConfigManager.getAuthenticationBeanListBean().getSucText();
|
|
if(TextUtils.isEmpty(sucText)){
|
|
if(TextUtils.isEmpty(sucText)){
|
|
sucText="请通行";
|
|
sucText="请通行";
|
|
@@ -350,6 +355,12 @@ public class BaiduResultView extends LinearLayout {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private void setViewVisibility(View view,boolean isVisibility){
|
|
|
|
+ if(view!=null){
|
|
|
|
+ view.setVisibility(isVisibility?VISIBLE:INVISIBLE);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
Handler mHandler =new Handler(Looper.getMainLooper());
|
|
Handler mHandler =new Handler(Looper.getMainLooper());
|
|
|
|
|
|
public Handler getmHandler() {
|
|
public Handler getmHandler() {
|
|
@@ -878,7 +889,11 @@ public class BaiduResultView extends LinearLayout {
|
|
@Override
|
|
@Override
|
|
public void run() {
|
|
public void run() {
|
|
setVisibility(View.VISIBLE);
|
|
setVisibility(View.VISIBLE);
|
|
- fl_user_info.setVisibility(VISIBLE);
|
|
|
|
|
|
+ setViewVisibility(fl_user_info,ConfigManager.isShowUserInfo());
|
|
|
|
+ setViewVisibility(ivPhoto,ConfigManager.isSuccessShowPersenalInfoPhoto);
|
|
|
|
+ setViewVisibility(tv_name,ConfigManager.isSuccessShowPersenalInfoName);
|
|
|
|
+ setViewVisibility(tv_card,ConfigManager.isSuccessShowPersenalInfoIDCard);
|
|
|
|
+ setViewVisibility(tv_phone,ConfigManager.isSuccessShowPersenalInfoPhone);
|
|
String sucText= ConfigManager.getAuthenticationBeanListBean().getSucText();
|
|
String sucText= ConfigManager.getAuthenticationBeanListBean().getSucText();
|
|
if(TextUtils.isEmpty(sucText)){
|
|
if(TextUtils.isEmpty(sucText)){
|
|
sucText="请通行";
|
|
sucText="请通行";
|