Ejemplo n.º 1
0
 @Override
 public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
   super.onViewCreated(view, savedInstanceState);
   phone.setEnabled(false);
   User currentUser = User.getCurrentUser(User.class);
   if (currentUser != null) {
     String mobile = currentUser.getMobilePhoneNumber();
     phone.setText(StringUtils.nullStrToEmpty(mobile));
   }
 }
Ejemplo n.º 2
0
 /**
  * 验证失败
  *
  * @param errorCode 错误码
  * @param errorMsg 错误信息
  */
 @Override
 public void onVerifyFail(String errorCode, String errorMsg) {
   ToastUtils.showToast(getContext(), StringUtils.nullStrToEmpty(errorMsg));
 }