FxAccountAbstractSetupActivity.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:mc_backup 作者:
protected Bundle makeExtrasBundle(String email, String password) {
  final Bundle bundle = new Bundle();

  // Pass through any extras that we were started with.
  if (getIntent() != null && getIntent().getExtras() != null) {
    bundle.putAll(getIntent().getExtras());
  }

  // Overwrite with current settings.
  if (email == null) {
    email = emailEdit.getText().toString();
  }
  if (password == null) {
    password = passwordEdit.getText().toString();
  }
  bundle.putString(EXTRA_EMAIL, email);
  bundle.putString(EXTRA_PASSWORD, password);

  boolean isPasswordShown = passwordEdit.getTransformationMethod() instanceof SingleLineTransformationMethod;
  bundle.putBoolean(EXTRA_PASSWORD_SHOWN, isPasswordShown);

  return bundle;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号