| | |
| | | viewBinding.fragmentMeLineDeviceDebugIl.fragmentMeLineRightIconClickIv.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | UserConfigManage.getInstance().setUniBottomSafeDistanceBackgroundColor(2); |
| | | //设备调试 |
| | | String path = HDLUniMP.UNI_EVENT_OPEN_MINE_DEVICEDEBUG; |
| | | HdlUniLogic.getInstance().openUniMP(path, null); |
| | |
| | | */ |
| | | private void setMemberName(String userName) { |
| | | if (TextUtils.isEmpty(userName)) { |
| | | viewBinding.fragmentMeUserNameTv.setVisibility(View.GONE); |
| | | viewBinding.fragmentMeUserNameNextIv.setVisibility(View.GONE); |
| | | viewBinding.userNameLl.setVisibility(View.GONE); |
| | | } else { |
| | | viewBinding.fragmentMeUserNameTv.setVisibility(View.VISIBLE); |
| | | viewBinding.fragmentMeUserNameNextIv.setVisibility(View.VISIBLE); |
| | | viewBinding.userNameLl.setVisibility(View.VISIBLE); |
| | | viewBinding.fragmentMeUserNameTv.setText(userName); |
| | | } |
| | | |
| | |
| | | * 显示账号 |
| | | */ |
| | | private void setMemberAccount(String userAccount) { |
| | | if (viewBinding.fragmentMeUserNameTv.getVisibility() == View.VISIBLE) { |
| | | if (viewBinding.userNameLl.getVisibility() == View.VISIBLE) { |
| | | viewBinding.fragmentMeUserRoleNextIv.setVisibility(View.GONE); |
| | | } else { |
| | | viewBinding.fragmentMeUserRoleNextIv.setVisibility(View.VISIBLE); |
| | | } |
| | | |
| | | if (TextUtils.isEmpty(userAccount)) { |
| | | userAccount = "--"; |
| | | } |
| | | viewBinding.fragmentMeUserRoleTv.setText(userAccount); |
| | | |
| | | } |
| | | |
| | | |